Run ID:25205
提交时间:2022-04-23 19:52:12
s = input() sList = s.split(' ') a = int(sList[0]) b = int(sList[1]) n = a*b ys = a%b while ys!=0: a = b b = ys ys =a%b print(b,int(n/b))