Modular Exponentiation

code Link : https://pastebin.com/nrwS1fn3
I am getting all test cases correct except one , please suggest where my code fails

Divya, use long long int variables instead of only integer variables,
You can refer to the changed code :


Try to submit this code now…

when should we use long long and when should we use long long int

long long and long long int represents same… when the value of the variables is of the order of 10^5 or more, it is always better to use long long int only…