TLE due to >= instead of > in custom compare function

Revision en1, by iamujj15, 2022-10-29 16:08:16

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.

Tags tle, overloading, compare function

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English iamujj15 2022-10-29 16:08:16 588 Initial revision (published)