as I submitted my code to D (1 or 2, doesn't matter) it had TLE at test 2. https://codeforces.net/contest/1326/submission/73715713 I reshuffled the code and it passed. https://codeforces.net/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?