i am getting runtime error (SIGFPE) in the following code..!! i think i am not dividing by zero anywhere.
thank you!!
What are the input constraints? Is this a SPOJ problem? Which one?
yes this is a spoj problem!! http://www.spoj.pl/problems/GCPC11A/2<=n<=10^18 and 2<=k<=10^12
well, now i have changed the code i have declared everything as unsigned long long int and i am getting WA..!!
Please post the updated code.
printf("enter\n");
That will lead to WA. Please post code that you actually think should get AC.