python 递归解法
2026-01-31 13:37:53
发布于:四川
0阅读
0回复
0点赞
a,b=map(int,input().split())
def f(a,b):
if a%b:
return f(b,a%b)
else:
return b
print(f(a,b))
这里空空如也
2026-01-31 13:37:53
发布于:四川
a,b=map(int,input().split())
def f(a,b):
if a%b:
return f(b,a%b)
else:
return b
print(f(a,b))
这里空空如也
提交答案之后,这里将显示提交结果~
有帮助,赞一个