题解 | #求最小公倍数#
求最小公倍数
https://www.nowcoder.com/practice/22948c2cad484e0291350abad86136c3
这样有没有问题
a, b = map(int,input().split())
if a % b == 0:
print(a)
elif b % a == 0:
print(b)
else:
print(a*b)
求最小公倍数
https://www.nowcoder.com/practice/22948c2cad484e0291350abad86136c3
这样有没有问题
a, b = map(int,input().split())
if a % b == 0:
print(a)
elif b % a == 0:
print(b)
else:
print(a*b)
相关推荐