SMALL
N = int(input())
if 1<=N<=1000000:
L = list(map(int, input().split(" ")))
print(min(L), max(L))
LIST
'Baekjoon' 카테고리의 다른 글
[백준 1966번] 프린터 큐 (2) | 2022.08.01 |
---|---|
[백준 1927번] 최소 힙 (0) | 2022.08.01 |
[백준 2525번] 오븐 시계 (0) | 2022.07.20 |
[백준 10840번] 피보나치 수 5 - 재귀함수 (0) | 2022.07.20 |
[백준 2501번] 약수구하기 (0) | 2022.07.20 |