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
|
337 Discussions
|
Please Login in order to post a comment
import numpy as np
n,m = map(int, input().split()) a= [] for i in range(n): a.append(list(map(int, input().split()))) print(np.max(np.min(a, axis = 1)))
import numpy as np
n, m = list(map(int, input().strip().split()))
arr = np.array([input().strip().split() for _ in range(n)], dtype=np.int32) print(np.max(np.min(arr, axis = 1)))
import numpy as np n, m = input().split() l = [] for i in range(int(n)): l.append(list(map(int, input().split())))
arr = np.array(l) minimum = np.min(arr, axis=1) maximum = set(minimum) print(max(maximum))