Toggle navigation
编绘童年
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
[
ProblemSet
Status
Ranklist
OI Ranklist
Statistics
]
Login
Login
Register
联系我们:18205821666(微信同号)
Problem G: 规律循环-练习四训练
Problem G: 规律循环-练习四训练
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
477
Solved:
335
[
Status
] [
Submit
] [Creator:
]
Description
请将以下程序归纳成循环结构
int n;
cin>>n;
cout<<n+2*20<<“ ”;
cout<<n+4*18<<“ ”;
cout<<n+6*16<<“ ”;
…
cout<<n+20*2<<“ ”;
Input
仅一行,一个正整数。
Output
一行,输出若干个正整数,数字之间用空格隔开
Sample Input
Copy
1
Sample Output
Copy
41 73 97 113 121 121 113 97 73 41