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