Min and Max

  • + 1 comment

    import numpy

    if name == 'main':

    N , M = map(int , input().split())
    
    List = []
    
    for i in range(N):
    
        X = list(map(int , input().split()))
        List.append(X)
    
    min_array = numpy.min(List , axis = 1)
    max_array = numpy.max(min_array)
    
    print(max_array)