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
|
310 Discussions
|
Please Login in order to post a comment
import numpy as np
input as list of an array
n,m=map(int,input().split())
storing the value in an array
arr=[]
for i in range(n): #appending input in an arr[] arr.append(list(map(int,input().split())))
converting arr[] into array
arr1=np.array(arr) print(np.max(np.min(arr1,axis=1)))