Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
70020 胡海峰老师 公约数问题 Python3 Accepted 35 MS 3772 KB 166 2024-04-13 11:24:54

Tests(10/10):


Code:

def gcd(a, b): while b: a, b = b, a % b return a a,b = input().split() a,b = int(a),int(b) if a<b: a,b = b,a res = gcd(a,b) print(res)