HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > Lab11 - SWE > problem:


50433 - Sum of Cubes

Lab11 - SWE

Start: Dec.12.2023 at 12:16:04 AM
Finish: Dec.22.2023 at 11:16:04 PM
The contest is finished!
• Contest scoreboard

Guest
• Review clarifications (4)

Contest problems

• 50428 - Three Times
• 50396 - Cinema Tickets - 1
• 50433 - Sum of Cubes
• 50435 - City Electric Bills
• 50440 - Call Center
• 50462 - Class Average (3 Grades)
• 13-Fall2-30. 50397 - The Number of...
• 14-03-50. 50469 - Letter Grades
• 15-SprPr2-50. 50508 - The Biggest ...
• 2. 50459 - The Biggest Digit

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