题解 | #N个数之和#
N个数之和
http://www.nowcoder.com/practice/b007744eb43b4f7b95d9e87de01528db
BC118 N个数之和
思路:
step1:sum求和即可;
代码如下:
n = int(input())
ls = list(map(int,input().split(' ')))
print(sum(ls))
N个数之和
http://www.nowcoder.com/practice/b007744eb43b4f7b95d9e87de01528db
n = int(input())
ls = list(map(int,input().split(' ')))
print(sum(ls))
相关推荐