Description
請在使用者給定的 �∗�n∗m 的二維陣列找出最大值以及其索引值。
Please find the maximum value and its index value in the two-dimensional array of �∗�n∗m given by the user.
Input
輸入包含以下資訊:
第一行包含 n,m(n,m≤10) 代表使用者輸入的二維陣列的行與列。
�,�(�,�≤10)
接下來的輸入則代表使用者輸入的二維陣列。
The input contains the following information:
The first line contains n,m(n,m≤10) which represents the rows and columns of the two-dimensional array entered by the user.
�,�(�,�≤10)
The next input represents a two-dimensional array of user input.
Output
請輸出最大值以及其索引值。
Please output the maximum value and its index value.
Sample Input 1
7 7
1 2 3 4 5 6 7
4 5 6 7 8 6 0
4 5 6 7 89 2 3
1 234 799 44 6 4 6
123 456 78955 444 66 77 5
1 1 1 1 1 1 1
2 2 2 2 2 2 2
Sample Output 1
78955 4 2
Sample Input 2
3 3
1 2 3
4 5 6
7 8 9
Sample Output 2