Run ID:66938

提交时间:2024-03-12 14:37:59

def solution(a,b): if a<b: a,b = b,a t = b while t>1: if a%t ==0 and b%t==0: return t t +=1 return t a,b = list(map(int,input().split())) res = solution(a,b) print(res)