Learners Help

hiii

I am new to programming …So for learning purpose ,I am solving previous contest problems

I am getting TLE in this problem:–

and my solution is
http://www.codechef.com/viewsolution/2694104

The code is self depictive …so easy to understand …Kindly help a LEARNER…

//