题解 | 求四位数各个数位之和

求四位数各个数位之和

https://www.nowcoder.com/practice/91fd90931d2847b5855075c11cf90d08

'''
n=list(map(int,input().split()))
a=sum(n)
print(a)
注意输入的是1234不是1 2 3 4,

'''
n=list(map(int,input()))
print(sum(n))

全部评论

相关推荐

点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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