Блог пользователя ashish_vaghani

Автор ashish_vaghani, 6 лет назад, По-английски

Given an integer $$$N$$$. Find two integers such that their product is strictly greater than $$$N$$$ and sum is minimum. How to solve this in O(1)?

P.S.- I posted this before, as I though contest ended at 9 pm. Sorry about that. JEEADVANCED can you confirm if the contest has ended.

  • Проголосовать: нравится
  • -15
  • Проголосовать: не нравится

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -16 Проголосовать: не нравится

2*sqrt(N)+1 are you really a specialist or is it magic?