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

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

My solution this failed the system test case in the Educational Codeforces Round 85 [Rated for Div. 2] giving tle verdict. But when I submitted the same code this after the contest it was accepted. Please anyone can help me what could have happened wrong.

MikeMirzayanov sir can you please take a look into this matter.

And I apologize for my bad English.

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

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

Do not use endl, use '\n' instead of this. Endl is also flushing output which takes a long time. I submitted your code 76261395 with '\n' and it took 592ms. While the system testing load on servers is higher, so solutions can run slower.