Getting WA in MARBLES

I know the answer. What am I lacking? What test case is not covered?
My solution link: https://ide.codingblocks.com/s/141085

Hi
check your code for 64 30

(your logic is correct this question on SPOJ has weak test cases (you can submit this code it will get AC,
you have to deal large integers.)