Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
132245 江屹山 最大公约数 Python3 Accepted 55 MS 3744 KB 125 2025-10-07 14:15:29

Tests(1/1):


Code:

m,n=input().split() m,n=int(m),int(n) x=min(m,n) while x>1: if m%x==0 and n%x==0: break x=x-1 print(x)