Whats the problem?
@garganshul151 Using inbuilt function pow will not work for large test cases.
the constraints given are 1<=a,b,c<=100000. So (a^b) can reach a very large value which cannot be handled by the datatype. This is why your code is giving wrong answer for many test cases. You have to handle those cases when a^b reaches a very large value.
So refer this video:
which video and does iterating through for loop will work?
Yes.
https://ide.codingblocks.com/s/142006
Refer this. You have to use the property of MOD as taught in lectures.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.