22192 3和5和7
3和5和7
https://ac.nowcoder.com/acm/problem/22192
#include<bits/stdc++.h> using namespace std; int main() { int n,i; cin>>n; for(i=1;i<=n;i++) if(i%3==2&&i%5==3&&i%7==2) cout<<i<<endl; return 0; }
3和5和7
https://ac.nowcoder.com/acm/problem/22192
#include<bits/stdc++.h> using namespace std; int main() { int n,i; cin>>n; for(i=1;i<=n;i++) if(i%3==2&&i%5==3&&i%7==2) cout<<i<<endl; return 0; }
相关推荐