Same solution gave TLE during system testing but passed during practice.
Difference between en1 and en2, changed 2 character(s)
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://codeforces.net/contest/1388/submission/88486803 gave TLE.↵

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

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

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)