divyanshubansal's blog

By divyanshubansal, history, 7 years ago, In English

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.

  • Vote: I like it
  • +21
  • Vote: I do not like it

| Write comment?
»
7 years ago, hide # |
 
Vote: I like it +4 Vote: I do not like it

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.