Solve
N = int(input()) numbers = list(map(int, input().split())) print(min(numbers), max(numbers))
파이썬 내장함수 min(), max()를 이용하면 최댓값과 최솟값을 쉽게 구할수있다.