leetcdoe 1351. 统计有序矩阵中的负数
1351. 统计有序矩阵中的负数class Solution: def countNegatives(self, grid: List[List[int]]) -> int: count = 0 for i in grid: for j in i : if j<0: count+=1 return count给你一个m* n的矩阵.