Codechef question getting TLE every time

Revision en2, by hunterr_196, 2018-07-04 13:15:34

This is the ques from codechef for which i am getting TLE QUES and this is the link of my solution codesolution Please can anyone help me to understand why my approach is getting TLE all the time even though i am only performing the mathematical operations only. It would be a great help for me.

Tags #codechef, #chefcup

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English hunterr_196 2018-07-04 13:15:34 17
en1 English hunterr_196 2018-07-04 13:07:52 430 Initial revision (published)