题解 | #最高身高#
最高身高
http://www.nowcoder.com/practice/258fe0c567ac493f9b7bc9d3669d158d
- 本题的关键就是,注意从1开始算第1行,从1开始算第1列。。。。
import math
n,m = map(int,input().split())
# print(n,m)
lines = []
for i in range(n):
temp = list(map(int,input().split()))
lines.extend(temp)
# x,y = map(int,input().split())
# print(lines)
# print(lines[x-1][y-1])
max_num = max(lines)
max_index = lines.index(max_num)
# print(max_num)
# print(max_index)
i = (max_index ) // m + 1
j = max_index - (i-1)*m +1
print(i,j)