题解 | 数字求和

数字求和

https://www.nowcoder.com/practice/e8cee01f2d834fa9ba3479fafe492b65

a = list(map(int, input().split()))
l = len(a)-1
s = 0
for i in range(l):
    if a[0] > a[i+1]:
        s += a[i+1]
print(s)

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

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