백준-10818번(최소,최대)-python
i=int(input())
arr=[]
arr[0:i]=map(int,input().split())
arr.sort()
print(arr[0],arr[i-1])
'알고리즘 > 백준' 카테고리의 다른 글
백준-10951번(A+B-4)-python (0) | 2023.11.23 |
---|---|
백준-10871번(X보다 작은수)-python3 (0) | 2023.11.23 |
백준-2577번(숫자의 개수)-python (0) | 2023.11.23 |
백준-2562번(최댓값)-python (0) | 2023.11.23 |
백준-2439번(별찍기-2)-python (0) | 2023.11.23 |