#33262: python 三行解


aclip75105820@gmail.com (AC Clip)

學校 : 不指定學校
編號 : 217697
來源 : [36.230.52.27]
最後登入時間 :
2022-12-17 00:56:05

from math import gcd
a,b = map (int,input().split())
print(gcd(a,b))
 
# 從 math 模組匯入gcd
# a,b=任意整數參數
# 輸出a,b最大公因數
#33572: Re: python 三行解


hibana2077@gmail.com (tom.li)

學校 : 不指定學校
編號 : 111830
來源 : [1.162.202.240]
最後登入時間 :
2023-01-13 12:35:03

from math import gcd
a,b = map (int,input().split())
print(gcd(a,b))
 
# 從 math 模組匯入gcd
# a,b=任意整數參數
# 輸出a,b最大公因數

 

from math import gcd
print(gcd(*list(map(int, input().split()))))