Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
25205 | 曹盈盈 | 最大公约数和最小公倍数 | Python3 | Accepted | 45 MS | 6336 KB | 165 | 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))