HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


50901 - Sum of Cubes-1

Guest
• Review clarifications (6)

Section problems

• 50970 - Marbles
• 50943 - Word Game
• 51106 - Polar Bear
• 50942 - Win or Lose
• 50971 - Belote Game
• 50886 - Even or Odd
• 50894 - ASCII Codes
• 50897 - Prime Number
• 50901 - Sum of Cubes-1
• 50907 - Second Largest
• 50910 - Flipping Coins
• 50950 - Biggest Number
• 50957 - Divisible by 3
• 50975 - Cinema Tickets
• 50959 - Draw the Pattern
• 50898 - Draw the Pattern
• 50961 - Order of 3 Runner

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.

Sum of Cubes

 

Write a program that asks the user to type an integer N and then computes the sum of the cubes of the numbers from 1 to N (0 < N ≤ 1000).

Input: In the first line, you will get a positive number N.

Output: Sum of the cubes of the numbers until N3.

Sample Input1:

Sample Input2:

3

100

Sample  Output1:

Sample  Output2:

36

25502500

 

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

www.contester.ru