题解 | #求最小公倍数#
求最小公倍数
https://www.nowcoder.com/practice/22948c2cad484e0291350abad86136c3
if __name__ == '__main__': A, B = list(map(int, input().strip().split())) # 求最大公约数 x = min(A, B) while x > 1: if A % x == 0 and B % x == 0: break x -= 1 ans = (A * B) // x print(ans)