Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб. Question by Ibrahim Mesecan.
Sum of Cubes
You are given two integers (a and b). Calculate and show
the sum of cubes from a to b.
Input specification
You will be given two integers (a and b) where
1 ≤ (a and b) ≤ 1000.
Output specification
Show one integer: sum of the cubes of the
numbers from a to b.
Sample Input
3 5
|
Sample Output
216
|
Explanation:
27 + 64 + 125 = 216
Для отправки решений необходимо выполнить вход.
|