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

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

I submitted solution 77669161 for problem 2B - The least round way and got TLE at test case 31 and not able to find reason. Could anyone help me in finding why it is getting tle error.

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

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

Hey, I couldn't figure out why you TLE (I've been looking at your code for 15+ mins). Instead, I'll share my code that ACed, and hopefully you can compare and figure out.

PS: I really liked this problem when I first read it (maybe last month), and it's been one of my favourites till now.

Code