I have tried to optimize my code in almost every possible way yet i'm getting TLE. The link to problem is http://www.codechef.com/JAN14/problems/MTRICK and to my solution is http://www.codechef.com/viewsolution/3225847 . Kindly provide any suggestions. Thanks in advance.
↧