Advertisement
T-D-K

Untitled

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