Toggle navigation
HUSTOJ
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
[
ProblemSet
Status
Ranklist
OI Ranklist
Statistics
]
Recent
Login
Problem L: 求1~n的平方和
Problem L: 求1~n的平方和
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
1126
Solved:
809
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
求
sum=1
2
+2
2
+3
2
+……+n
2
之和,输入为不超过100的正整数
Sample Input
3
Sample Output
14