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

Правка en1, от 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.

Теги tle, overloading, compare function

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский iamujj15 2022-10-29 16:08:16 588 Initial revision (published)