Need Help in this TLE

Revision en1, by deadlycoder82, 2024-12-13 14:30:25

I wanted to understand why this submission https://mirror.codeforces.com/contest/1538/submission/296235176 is getting a time limit exceeded while this one https://mirror.codeforces.com/contest/1538/submission/296121430 is accepted when both are literally the same algorithms and also applied in the same way. There is hardly any difference between the two.

Tags tle, time limit exceeded

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English deadlycoder82 2024-12-13 14:30:25 363 Initial revision (published)