题解 | #求最小公倍数#
求最小公倍数
https://www.nowcoder.com/practice/22948c2cad484e0291350abad86136c3
import math
a,b=map(int,input().split(' '))
# match.gcd是求最小公约数的
print(int(a*b/math.gcd(a,b)))
求最小公倍数
https://www.nowcoder.com/practice/22948c2cad484e0291350abad86136c3
import math
a,b=map(int,input().split(' '))
# match.gcd是求最小公约数的
print(int(a*b/math.gcd(a,b)))
相关推荐