본문 바로가기
알고리즘/백준

백준-10818번(최소,최대)-python

by nyeongha 2023. 11. 23.

백준-10818번(최소,최대)-python

i=int(input())
arr=[]
arr[0:i]=map(int,input().split())
arr.sort()
print(arr[0],arr[i-1])