Toggle navigation
HUSTOJ
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
[
ProblemSet
Status
Ranklist
OI Ranklist
Statistics
]
Recent
Login
Problem M: 求1~n的立方和
Problem M: 求1~n的立方和
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
839
Solved:
725
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
求
sum=1
3
+2
3
+3
3
+……+n
3
之和,输入为不超过20的正整数
如输入为3, 则输出为 1+8+27=36
Sample Input
3
Sample Output
36