Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
141596 6倪葭轩 公约数问题 Python3 Accepted 31 MS 3760 KB 161 2025-12-27 14:39:56

Tests(10/10):


Code:

a,b=input().split() a=int(a) b=int(b) def c(m,n): if n>m: n,m=m,n if n==0: return m return c(n,m%n) res=c(a,b) print(res)