Toggle navigation
万里ACM
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
[
ProblemSet
Status
Ranklist
OI Ranklist
Statistics
]
Login
Problem G: 输出自然数的平方1, 4, 9, 16, 25, 36...
Problem G: 输出自然数的平方1, 4, 9, 16, 25, 36...
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
1561
Solved:
1127
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
输入正整数N(N≤100),输出数列中的前N项。每个数占一行
Sample Input
Copy
5
Sample Output
Copy
1 4 9 16 25