Advertisement
T-D-K

Untitled

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