Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
86698 潘允晨 最大公约数 Python3 Accepted 33 MS 3772 KB 120 2024-07-27 11:04:17

Tests(1/1):


Code:

a,b=map(int,input().split()) s=[] for x in range(1,a+1): if a%x==0 and b%x==0: s.append(x) print(s[-1])