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