Toggle navigation
编绘童年
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
[
ProblemSet
Status
Ranklist
OI Ranklist
Statistics
]
Login
Problem E: 规律循环-练习二
Problem E: 规律循环-练习二
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
691
Solved:
518
[
Status
] [
Submit
] [Creator:
]
Description
请将以下程序归纳成循环结构
int n;
cin>>n;
cout<<n/2<<“ ”;
cout<<n/4<<“ ”;
cout<<n/6<<“ ”;
…
cout<<n/20<<“ ”;
Sample Input
Copy
840
Sample Output
Copy
420 210 140 105 84 70 60 52 46 42