eolymp
bolt
Try our new interface for solving problems
Problems

Sum of cubes

Sum of cubes

Given positive integer $n$. Find the sum $1^3 + 2^3+ 3^3 + ... + n^3$. \InputFile One positive integer $n~(1 \le n \le 10000)$. \OutputFile Print the value of the sum.
Time limit 1 second
Memory limit 128 MiB
Input example #1
2
Output example #1
9
Author Michael Medvedev