python
n = int(input())
num_list = list(map(int, input().split()))
num_list.sort(reverse=False)
print(num_list[0], num_list[n-1])
'💡 코테' 카테고리의 다른 글
백준 2609번 최대공약수와 최소공배수 (0) | 2022.07.14 |
---|---|
백준 10870번 피보나치 수 5 (0) | 2022.03.04 |
백준 2460 지능형 기차 2 (0) | 2022.03.03 |
백준 3460 이진수 (0) | 2022.02.28 |
백준 2051 약수 구하기 (1) | 2022.01.04 |