← Back to List

9884번: Euclid ↗

Solutions

Python 3
95 B | 95 chars
def f(a, b):
    return f(b, a % b) if b else a

a, b = map(int, input().split())
print(f(a,b))