|
|
|
|
讨论 Discussion |
|
| |
sb |
#include<iostream>
using namespace std;
int main(){
freopen("p1033.in","r",stdin);
freopen("p1033.out","w",stdout);
int n,b;
cin>>n;
for(int a;a<=n;a++){
if(a%3==1&&a%5==1&&a%7==1){
cout<<a<<" ";
b++;
}
}
cout<<endl;
cout<<b;
fclose(stdin);
fclose(stdout);
return 0;
}
( ) |
|
|
|
|
|
|
|
|
|
Flag |
|
题号 |
P1000 |
|
其它 |
通过 |
398人 |
提交 |
3301次 |
通过率 |
12% |
难度 |
0 |
|
|
|
|
|
|