Power - Mod Power
February 08, 2024
3
4
581
1# Enter your code here. Read input from STDIN. Print output to STDOUT
a = int(input())
b = int(input())
c = int(input())
d = pow(a,b)
e = pow(a,b,c)
print(d)
print(e)Last updated
February 08, 2024
3
4
581
1# Enter your code here. Read input from STDIN. Print output to STDOUT
a = int(input())
b = int(input())
c = int(input())
d = pow(a,b)
e = pow(a,b,c)
print(d)
print(e)Last updated