iamujj15's blog

By iamujj15, history, 2 years ago, In English

In recent Codeforces round #831, I got TLE in the final Test Set (Pretests passed successfully) of Problem B for this submission

I then again submitted this exact same solution but replacing >= with > in my cmp function and it got accepted. Accepted Solution.

I'm unable to understand why I got TLE in my original solution. Please help me with this.

  • Vote: I like it
  • -18
  • Vote: I do not like it

»
2 years ago, # |
  Vote: I like it +24 Vote: I do not like it

read this -----> https://codeforces.me/blog/entry/70237 <----- read this