Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
132348 胡皓宇 最大公约数 Python3 Accepted 50 MS 3740 KB 128 2025-10-08 09:20:16

Tests(1/1):


Code:

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