TLE AC
These are two submissions I made on codeforces, one gives AC (all correct), where as other gives TLE(time limit exceeded).
I have used vectors, wh