TLE — time limit exceeded | at codeforces global round 7 — problem d

Revision en1, by inbarin, 2020-03-20 16:10:02

as I submitted my code to D (1 or 2, doesn't matter) it had TLE at test 2. https://codeforces.me/contest/1326/submission/73715713 I reshuffled the code and it passed. https://codeforces.me/contest/1326/submission/73724920 now the weird thing is that my original code passed test 2 when I ran it from home. any ideas why or what?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English inbarin 2020-03-20 16:10:02 403 Initial revision (published)