def Euclid(a, b):
a, b = max(a, b) % min(a, b), min(a, b)
if a == 0:
return b
return Euclid(a, b)
print(Euclid(*map(int, input().split())))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
def Euclid(a, b):
a, b = max(a, b) % min(a, b), min(a, b)
if a == 0:
return b
return Euclid(a, b)
print(Euclid(*map(int, input().split())))