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

PROGRAMMING:Find the saddle point

Luz5年前 (2021-05-10)题库423
Title Description
Find out the saddle point in the two-dimensional array, that is, the element in the position is the largest in the row and the smallest in the column. There may be no saddle point.
###Input format:
Enter an integer two-dimensional array with 4 rows and 4 columns.
###Output format:
If there is a saddle point, input the saddle point and its position; If there is no saddle point, output "it is not exist!".
###Input sample 1:
Here is a set of inputs. For example:
```in
2 3 9 5
6 7 8 3
0 5 7 5
2 1 8 3
```
###Output sample 1:
The corresponding output is given here. For example:
```out
a[2][2]=7
```
###Input sample 2:
Here is a set of inputs. For example:
```in
2 3 9 5
6 7 8 3
1 5 6 7
2 1 8 3
```
###Output sample 2:
The corresponding output is given here. For example:
```out
It is not exist!
```






answer:If there is no answer, please comment