Toggle navigation
万里ACM
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
[
ProblemSet
Status
Ranklist
OI Ranklist
Statistics
]
Login
Problem H: 输出等比数列2的n次方
Problem H: 输出等比数列2的n次方
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
1598
Solved:
1257
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
输入正整数N(N≤20),输出等比数列2
i
的前N项1,2,4,8,16...每个数占一行
Sample Input
Copy
5
Sample Output
Copy
1 2 4 8 16