-->
当前位置:首页 > 题库

PROGRAMMING:Find the negative number of elements in each column of matrix

Luz5年前 (2021-05-10)题库393
This problem requires the preparation of procedures to find a given M × The number of negative elements in each column of N matrix.
###Input format:
Enter the first line to give two positive integers m and n (1 ≤ m, n ≤ 10). Then m lines, each line gives n integers separated by spaces.
###Output format:
Each row outputs the negative number of elements in the corresponding matrix column.
###Input example:
For example:
```in
3 4
-3 1 5 2
-1 -4 6 7
1 0 2 3
```
###Output example:
```out
two
one
0
0
```






answer:If there is no answer, please comment