HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Arithmetic > problem:


50433 - Sum of Cubes

Guest
• Review clarifications (4)

Section problems

• 50296 - Total Discount Rate
• 50289 - Monthly Allowance
• 50403 - Number of Chairs
• 50408 - Molecules
• 50481 - Car Parking
• 50413 - Valid Permutations
• 50412 - K numbers
• 50417 - Fun Fair
• 50433 - Sum of Cubes
• 50807 - Euro to Leke
• 50871 - Harmonic Mean
• 50521 - Pound to Grams
• 50292 - Average of 4 Marks
• 50432 - Numbers and Squares
• 50510 - What floor are they?
• 50870 - ZScore normalization
• 50797 - Nr of Missing Guests

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
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

Для отправки решений необходимо выполнить вход.

www.contester.ru