Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
85208 丁俊杰 最大公约数 Python3 Accepted 32 MS 3760 KB 141 2024-07-16 17:52:51

Tests(1/1):


Code:

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