Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
84419 胡海峰老师 最大公约数 Python3 Accepted 36 MS 3756 KB 139 2024-07-16 08:55:02

Tests(1/1):


Code:

m,n = map(int,input().split()) if m<n: m,n = n,m t = n while True: if m%t==0 and n%t==0: break t -=1 print(t)