SHARE
TWEET

Untitled

a guest Nov 19th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n, m = map(int, input().split())
  2.  
  3. a = []
  4. for i in range(n):
  5.     a.append([int(x) for x in input().split()])
  6.  
  7. max1, str1, stl = 0, 0, 0
  8. for i in range(n):
  9.     for j in range(m):
  10.         if a[i][j] > max1:
  11.             max1 = a[i][j]
  12.             str1 = j
  13.             stl = i
  14.            
  15. print(max1)
  16. print(stl, str1)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top