ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Сборники > Задачи со всего света > задача:


095. 50453 - The Cubic Difference

Гость
• Вопросы к жюри (1)

Задачи сборника

• 060. 50727 - Fibonacci Numbers
• 061. 50733 - The Highest Average
• 062. 50390 - Total Salary Paid
• 066. 50523 - Total Tax to Pay
• 070. 50534 - Top Trading Company
• 076. 50289 - Monthly Allowance
• 080. 50347 - Selling Oranges
• 090. 50378 - Sum of the given digits
• 095. 50453 - The Cubic Difference
• 100. 50397 - The Number of Points ...
• 110. 50409 - Random Password Ge...
• 120. 50684 - Shuma e numrave pri...
• 125. 50578 - Numrat Prim Mersenne
• 130. 50652 - Faktorizimi ne numra prim
• 132. 50474 - Sum of Two Primes
• 135. 50572 - Numrat Palindrome
• 140. 50393 - Palindromic Numbers

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Question by Ibrahim Mesecan.

The Cubic Difference

For a scientific study, your professor needs to find the smallest two consecutive numbers whose cubic difference is bigger than or equal to the given number n. For example if n is 40,

  • Cube of 2 is 8
  • Cube of 3 is 27 and cubic difference between 2 and 3 is 19
  • Cube of 4 is 64 and cubic difference between 3 and 4 is 37
  • Cube of 5 is 125 and cubic difference between 4 and 5 is 61
as a result 4 and 5 are the smallest two consecutive numbers whose cubic difference is bigger than the given number n.

Question: Write a program that gets a number (n) and finds the smallest consecutive numbers whose cubic difference is bigger than or equal to the given number n.

Input specification
You will be given an integer number (n) where 1 ≤ n ≤ 2x109.

Output specification
Show two numbers in ascending order.

 Sample Input   
  25
 Sample Output   
  3 4


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

www.contester.ru