hello coders,
i have attempted this question which is very easy one and i got WA … the given test cases passed in my compiler and all my code is correct … but i dont know y i am getting WA
Also, for evaluating the power i used modular exponentiation which is the best but still i got WA … pls yaar tell where i have done the mistake. In my code digit() function is for finding the number of digits of a given number.
Here is my solution
Thnq in advance.