Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
71459 胡海峰老师 最大公约数(函数) Python3 Accepted 40 MS 3768 KB 176 2024-04-24 12:10:29

Tests(10/10):


Code:

a,b = map(int,input().split()) def gcd(a,b): if b>a: a ,b= b,a while b!=0: a,b= b ,a%b return a res = gcd(a,b) print(res)