Advertisement
senb1

krsu 1037 (65 points)

Feb 20th, 2023
626
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. # by: senb1
  2.  
  3. import math
  4.  
  5. a, b, c, d, f = map(int, input().split())
  6.  
  7. print(math.gcd(pow(a,b),pow(c,d)) % f)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement