Today, during the contest, the problem 1546/B showed all pretests passed(4 pretests). Later it failed the system test and showed TLE on testcase-4 (but pretest-4 was initially passed during contest). I again submitted the exact same code a while ago, and now got accepted. I can't really understand what's going on...
Contest time code- https://codeforces.net/contest/1546/submission/122111498
The same code I ran after contest- https://codeforces.net/contest/1546/submission/122141000
See, both the codes are exactly same.