TLE in ACM14KN4

Although my code is O(MlogN), still I am getting TLE :confused: , Can I get all the Test Cases to check the efficiency of my code?. http://www.codechef.com/viewsolution/5620616

Thank You