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