Sort 8 Discussions, By:
Please Login in order to post a comment
I could only pass 7, 8 and 20th test cases.
While I could pass 0th test case while test run, I could not pass it while main run.
Can someone help me out..
i got runtimeerror while submitting the code.why i can't understand please anyone help me......
Is this going into the right direction?
What can you do if gcd(a, m) > 1
I tried using phi(m) in all cases, but I get incorrect results (as expected), but not reducing the size of the exponent, even if I do so, only when gcd > 1, still gets me timeouts.
Note: I already stop the recusion if m = 1;
Mine won't work because of timeout! Is there any way around this?
Can someone give me any test please!!