Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

Help needed with div2 #435 problem E

Правка en1, от hpotter97762, 2017-09-27 09:41:40

Here is the problem this

And this is my solution this

According to my analysis, the solution should be O( q*log(m-n)+m ). So, with n<=10000, I am not able to find why I am getting TLE or where is the code going in infinite loop...

Any help would be appreciated.... Thanks in advance!!

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский hpotter97762 2017-09-27 09:41:40 434 Initial revision (published)