hi guys ,
i am trying to solve this practice problem at codechef .The only approach which i came upto is
brute forcing which is giving me WA (due to overflows i guess ).
It would be helpful is you push me into right direction .
thanks