Min and Max

  • + 0 comments

    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)))