Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
131719 叶航帅 最大公约数 Python3 Accepted 52 MS 3748 KB 166 2025-10-01 10:46:13

Tests(1/1):


Code:

a,b = input().split() a = int(a) b = int(b) if b > a: a,b = b,a x = b while x >= 1: if a%x == 0 and b % x == 0: break x = x - 1 print(x)