Problem J: 【二维数组】马鞍数
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:119
Solved:70
Description
矩阵中一个数在列中为最大值,在行中为最小值,则该数为马鞍数,请查找这样的数。
Input
n+1行
第一行,n
第2~n+1行为,n行n列的数阵
Output
一行,两个数,表示马鞍数的位置(即行列号)
Sample Input Copy
5
2 6 7 8 9
4 5 6 7 8
3 4 5 2 1
2 3 4 9 0
1 2 5 4 8
Sample Output Copy
2 1