E005


Submit solution

Points: 10
Time limit: 1.0s
Memory limit: 512M

Problem type

Cho số nguyên dương \(n\).

Yêu cầu: Tính \(s=1^3+2^3+⋯+n^3.\)

Input

  • Gồm một dòng chứa số nguyên \(n (1≤n≤10^3 ).\)

Output

  • Gồm một dòng ghi tổng \(s\) tìm được.

Sample Input

2

Sampe Output

9

Sample Input

3

Sample Output

36

Comments

There are no comments at the moment.