You are viewing a single comment's thread. Return to all comments →
mod=1000000007 def solve(a, b): # Write your code here a=int(a) b=0 for i in b: b=(b*10+int(i))%(mod-1) return pow(a,b,mod)
Seems like cookies are disabled on this browser, please enable them to open this website
Power of large numbers
You are viewing a single comment's thread. Return to all comments →