题解 | #求最小公倍数#

求最小公倍数

http://www.nowcoder.com/practice/22948c2cad484e0291350abad86136c3

const r = readline.createInterface({
    input: process.stdin,
    output: process.stdout
})

r.on('line', (input) => {
    let arr = input.split(' ')
    let index = 1
    while((arr[0]*index)%arr[1]) index++
    console.log(arr[0]*index) 
})
全部评论

相关推荐

Rena1ssance_:对的,要是面评没太烂,勤更新简历等捞就行了,腾讯可以无限复活
点赞 评论 收藏
分享
评论
2
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务