题解 | #求最小公倍数#
求最小公倍数
https://www.nowcoder.com/practice/22948c2cad484e0291350abad86136c3
import sys import math line = input().split() line = list(map(int,line)) a = line[0] b = line[1] #a和b的最小公倍数,等于a*b除以a和b的最大公约数 math.gcd(a, b) output = (a * b) // math.gcd(a, b) print(output)