- 最小公倍数
- 2017-08-13 21:09:05 @
import math
a, b = map(int, input().split())
print(int(a / math.gcd(a, b) * b))
啊。。。就是这样
3 条评论
-
twd2 LV 9 MOD @ 2017-08-13 22:12:04
import math a, b = map(int, input().split()) print(a * b // math.gcd(a, b))
...
-
2017-08-13 21:20:36@
help.....python学的不太好
-
2017-08-13 21:10:40@
#1 Accepted 27ms 3.191 MiB
#2 Accepted 25ms 3.191 MiB
#3 Accepted 23ms 3.191 MiB
#4 Accepted 24ms 3.238 MiB
#5 Wrong Answer 20ms 3.211 MiB
#6 Wrong Answer 26ms 3.312 MiB
#7 Wrong Answer 23ms 3.203 MiB
#8 Wrong Answer 25ms 3.219 MiB
#9 Wrong Answer 23ms 3.117 MiB
#10 Wrong Answer 24ms 3.188 MiB
- 1