题解 | #矩阵计算#
矩阵计算
http://www.nowcoder.com/practice/0c83231923c541d2aa15861571831ee5
a, b = map(int, input().split())
lis = []
for i in range(a):
lis += [int(j) for j in input().split() if int(j) > 0]
print(sum(lis))
矩阵计算
http://www.nowcoder.com/practice/0c83231923c541d2aa15861571831ee5
a, b = map(int, input().split())
lis = []
for i in range(a):
lis += [int(j) for j in input().split() if int(j) > 0]
print(sum(lis))
相关推荐