You are viewing a single comment's thread. Return to all comments →
just 4 lines
x=int(input()) y=int(input()) m=int(input()) print(pow(x,y),pow(x,y,m),sep="\n")
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Power - Mod Power
You are viewing a single comment's thread. Return to all comments →
just 4 lines