You are viewing a single comment's thread. Return to all 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()
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
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()