Advertisement
T-D-K

Untitled

May 28th, 2018
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. m, n = map(int, input().split())
  2. a = 0
  3. for i in range(m):
  4.     r = list(map(float, input().split()))
  5.     s = r[0]
  6.     for j in range(n):
  7.         if s < r[j]:
  8.             s = r[j]
  9.     a = a + s
  10. print (a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement