Help me out, Tried may times but still getting WA for Subtask 3.
problem:-(CGPOWN Problem - CodeChef)
My solution:-
Help me out, Tried may times but still getting WA for Subtask 3.
problem:-(CGPOWN Problem - CodeChef)
My solution:-
Look at the constraints. You may be storing values on the order of 10^24.
You need to make your own modular multiplication function.
If you need to see how to implement here is my code