http://www.codechef.com/viewsolution/5268771
Please someone look the solution and tell me how can I optimize it further to avoid TLE.
http://www.codechef.com/viewsolution/5268771
Please someone look the solution and tell me how can I optimize it further to avoid TLE.