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

PROGRAMMING:Finding the maximum and minimum value in a matrix

Luz5年前 (2021-05-10)题库463
To an n × M array, input a group of integers (n < = 10, m < = 10), and then output the maximum and minimum values, and output the subscripts of the two values.
###Input format:
The first line outputs n × M and its subscript. A space between every two items.
The second line outputs n × M and its subscript. A space between every two items.
(if there is the same maximum number, the output row and column should be the minimum, and the row should have priority)
###Output format:
Please describe the output format here. For example, for each group of inputs, output the value of a + B in one line.
###Input example:
```in
3 5
57 30 66 41 98
11 93 54 62 31
49 87 71 70 37
```
###Output example:
```out
max=98 row=0 col=4
min=11 row=1 col=0
```







answer:If there is no answer, please comment