I am trying to figure out why its giving TLE in testcase 9 from the day contest ends. It was TLE that time also. After contest ended I have looked at other's solutions as well to editorials. My solution is using same binary search approach. Can anyone tells whats wrong in code why its giving TLE in testcase 9. Solution link. http://mirror.codeforces.com/contest/738/submission/22360223
Thanks in Advance. gandu007