Toggle navigation
万里ACM
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
[
ProblemSet
Status
Ranklist
OI Ranklist
Statistics
]
Login
Problem N: 计算1
2
+2
2
+3
2
+4
2
+...
Problem N: 计算1
2
+2
2
+3
2
+4
2
+...
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
472
Solved:
442
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
输入正整数N(N≤1500),计算1
2
+2
2
+3
2
+4
2
+...N
2
,并输出计算结果
Sample Input
Copy
1 2 3 4 13 20
Sample Output
Copy
1 5 14 30 819 2870