알고리즘/배열(array)
백준 10818 python
자코린이
2023. 6. 9. 10:58
lenList = int(input())
intList = list(map(int, input().split()))
sortedList = sorted(intList)
indexOfBIg = lenList - 1
print(sortedList[0], sortedList[indexOfBIg])
부족한 부분은 댓글로 알려주시면 감사한 마음으로 수정하겠습니다.