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

Автор sourav_malo, история, 8 лет назад, По-английски

As you know that Educational Codeforces Round 54 (Rated for Div. 2) was held yesterday. Perhaps, you solved 1076B - Divisor Subtraction without any difficulty. Now, I am thinking how to solve this problem if there are no less than 10^5 queries. Please, mention the complexity with approach.

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

»
8 лет назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

owowow

»
8 лет назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

if you lower the limit of n to 1e7 than you can have as many queries as you want, but i dont think 1e10 is gonna do well for more than 100 queries...

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

Has there any way to find at least a divisor of n smaller than sqrt(n) within at most 1000 loops where n<=10^10?