http://www.codechef.com/viewsolution/1745517
this is the accepted solution of the problem I got TLE on my submission so I modified the code which is exactly similar to the above one but I’m still getting TLE.
My solution : CodeChef: Practical coding for everyone
Please tell me how is this happening ?