Tle because your loop runs for the same number of times, whatever be the input. Added loop count. Your loop doesn’t break properly. Sure this time.
So, your loop doesn’t break properly! Try to figure out why! I’ll have some rest meanwhile
1 Like
thanx for figuring out the loop bug Here’s the updated code
http://www.codechef.com/viewsolution/5146792
But still TLE