Advertisement
T-D-K

Untitled

May 17th, 2018
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. m, n = map(int, input().split())
  2. a = 0
  3. ai = 0
  4. aj = 0
  5. for i in range(n):
  6.     q = list(map(int, input().split()))
  7.     for j in range(m):
  8.         if (q[j] > a):
  9.             a = q[j]
  10.             ai = i
  11.             aj = j
  12. print(a)
  13. print(str(ai)+" "+str(aj))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement