题解 | #矩阵计算#
矩阵计算
http://www.nowcoder.com/practice/0c83231923c541d2aa15861571831ee5
N, m = map(int, input("").split(' ')) list_num=[] sum=0 for i in range(N): num = list(map(int, input().split(' '))) list_num.extend(num) for i in list_num: if i>0: sum+=i print(sum)