Modular exponention

i am not able to solve this problem …and not get the editorial solution …plz suggest me some video or code of this program

this is not a hard Problem only difficult thing is constraints

you have to calculate (a^b)%c

so to calculate A^b use fast exponentiation but this value can overflow so take mod also in each step

first try at your own once again
even if not able to do send me link of code i will help you

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.