Min and Max

  • + 0 comments

    import numpy as np

    def sample_input_func(x): return list(map(int, x.split()))

    def main():
    N, M = sample_input_func(input()) initial_array = np.array([sample_input_func(input()) for _ in range(N)]) min_array = np.min(initial_array, axis = 1) max_array = np.max(min_array, axis = 0) print(max_array)

    main()