Count Zeros In A Sorted Matrix
easy
Given a Binary Square Matrix where each row and column of the matrix is sorted in ascending order. Find the total number of Zeros present in the matrix.
Constraints
1 <= T <= 50 1 <= M,N <= 1000 0 <= A[i][j] <= 1
Format
Input
Input is managed for you
Output
Output is managed for you
Example
Sample Input
3
0 0 1
0 1 1
0 1 1
Sample Output
4