Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m, n = map(int, input().split())
- a = 0
- ai = 0
- for i in range(n):
- q = list(map(int, input().split()))
- s = 0
- for j in range(m):
- s = s + q[j]
- if s > a:
- a = s
- ai = i
- print(a)
- print(ai)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement