题解 | 小红的gcd

小红的gcd

https://www.nowcoder.com/practice/5500a375098947c482b2c4787057cb13

两行

用分号可以一行

from math import gcd

print(int(input()) * gcd(*map(int, input().split())))

全部评论
长见识了
点赞 回复 分享
发布于 昨天 19:48 四川

相关推荐

评论
1
收藏
分享

创作者周榜

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