题解
2025-05-09 20:30:27
发布于:浙江
1阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
for(int x=9999;x>=1000;x--){
if((x%a0)&&((x+1)%b0)&&((x+2)%c==0)){
cout<<x<<endl;
return 0;
}
}
cout<<"Impossible";
return 0;
}
这里空空如也
有帮助,赞一个