Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # by: senb1
- import math
- a, b, c, d, f = map(int, input().split())
- print(math.gcd(pow(a,b),pow(c,d)) % f)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement