divyanshubansal's blog

By divyanshubansal, history, 3 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?
»
3 years ago, # |
  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.

  • »
    »
    3 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Ok fine I will remember it from next time. But my same solution got accepted after the contest. So I will not be getting points for my correct solution?

    • »
      »
      »
      3 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      I don't know, but I think you won't get points.