반응형
https://www.acmicpc.net/problem/10818
n = int(input())
arr = list(map(int, input().split()))
arr.sort()
print(arr[0], arr[-1])
반응형
'백준 | Baekjoon' 카테고리의 다른 글
[백준][10952] A+B - 5 (0) | 2024.07.10 |
---|---|
[백준][2743] 단어 길이 재기 | 파이썬 (0) | 2024.06.05 |
[백준][10871] X보다 작은 수 | 파이썬 (0) | 2024.06.05 |
[백준][10807] 개수 세기 | 파이썬 (1) | 2024.06.05 |
[백준][2439] 별 찍기 - 2 | 파이썬 (0) | 2024.06.05 |