We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Numpy
- Min and Max
- Discussions
Min and Max
Min and Max
Sort by
recency
|
327 Discussions
|
Please Login in order to post a comment
import numpy
if name == 'main':
import numpy as np
m, n = map(int, input().split())
lst = []
for _ in range(m):
print(np.max(np.min(np.array(lst), axis = 1)))
import numpy as np N,M = input().split() A = [] for i in range(int(N)): A.append(input().split())
A = np.array(A,int) m = np.min(A,axis =1) print(np.max(m))
import numpy
N, M = map(int, input().split()) listt = []
for i in range(1, N + 1): listt.append(list(map(int, input().split(" "))))
print(numpy.max(numpy.min(numpy.array(listt), axis=1)))