Same solution gave TLE during system testing but passed during practice.

Revision en2, by Mastermind222, 2020-07-31 00:00:05

This is in regard with Codeforces Round #660-Div 2 Problem B. I submitted a solution to this problem in O(n) time complexity. It passed all the pretests but gave TLE in system testing but later during practice the same code was accepted.

Solution submitted during contest: https://mirror.codeforces.com/contest/1388/submission/88486803 gave TLE.

Solution submitted for practice: https://mirror.codeforces.com/contest/1388/submission/88530257 passed all the test cases.

Can anyone explain me why it happened? Thanks in advance!

Tags #help, #error, #contest, division 2

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Mastermind222 2020-07-31 00:00:05 2 Tiny change: '.\n\nCan a anyone ex' -> '.\n\nCan anyone ex'
en1 English Mastermind222 2020-07-30 23:58:51 595 Initial revision (published)