Modular Exponentiation problem(one case not passed)


What’s the problem in the code that one test case did not pass?


This is corrected, try to submit it now

All passed and my score became zero!
And why did you remove the constraints. I had taken because it is mentioned in the question.

There is no need of checking the constraints , since you are using long long int a,b and c and it will cover all your constraint values, hence no need to check it

Okay. But my score reduced to zero!

Plz submit your code again

Again it gave zero. No problem. Leave it


Submit this code and tell …

again zero. I think I downloaded the test case after my first submission(score 90). That’s why this is happening.
Sorry I forgot.