Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
67523 吴梓玄 公约数问题 Python3 Accepted 35 MS 3772 KB 137 2024-03-16 16:46:45

Tests(10/10):


Code:

a,b=input().split() a=int(a) b=int(b) s=0 c=1 for i in range(a): if a%c==0 and b%c==0 and c>s: s=c c+=1 print(s)