题解 P2152 【[SDOI2009]SuperGCD】

· · 题解

//Python就是好用,直接暴力出奇迹就好了
a=input()
b=input()
a=int(a)
b=int(b)
while b:a,b=b,a%b
print(a)