Submit solution
Points:
0 (partial)
Time limit:
2.0s
Memory limit:
256M
Author:
Problem type
Allowed languages
Python
Your friend needs you to help him golf his coding assignment! The problem is as follows:
Given an integer
, calculate the sum of the first cubes: .
Note: You may only submit to this problem in Python 3.
Input Specification
The first line of input contains a single integer
Output Specification
Output the sum of the first
Scoring
Your score will be computed based on the length of your source code, the shorter the better. For an
- if
, you will receive the full points. - if
, you will receive points. - if
, you will receive points.
Sample Input
Copy
4
Sample Output
Copy
100
Comments