You are viewing a single comment's thread. Return to all comments →
import numpy as np
n,m=map(int,input().split())
arr=[]
for i in range(n): #appending input in an arr[] arr.append(list(map(int,input().split())))
arr1=np.array(arr) print(np.max(np.min(arr1,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 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)))