You are viewing a single comment's thread. Return to all comments →
import numpy
n, m = map(int, input().split()) arr = []
for _ in range(n): arr.append([*map(int, input().split())]) arr = numpy.array(arr)
print(numpy.max(numpy.min(arr, axis=1)))
Seems like cookies are disabled on this browser, please enable them to open this website
Min and Max
You are viewing a single comment's thread. Return to all comments →
import numpy
n, m = map(int, input().split()) arr = []
for _ in range(n): arr.append([*map(int, input().split())]) arr = numpy.array(arr)
print(numpy.max(numpy.min(arr, axis=1)))