TLE code : https://codeforces.net/contest/1613/submission/137709567
Accepted code : https://codeforces.net/contest/1613/submission/137711275
The only difference is:
AC : fin(i,0,n){ cout<<v[i]<<"\n"; }
TLE : fin(i,0,n){ cout<<v[i]<<endl; }
I know endl is supposed to be a bit slower because it flushes the output, but how is the difference significant enough to give a TLE?