알고리즘 문제 풀기/Codeup
Codeup 1293 - 1등과 꼴등
bug_maker
2019. 2. 14. 13:02
http://codeup.kr/problem.php?id=1293
Codeup 1293 - 1등과 꼴등
n = int(input())
scores = list(map(int, input().split()))
highest = scores[0]
lowest = scores[0]
for score in scores:
if score > highest:
highest = score
if score < lowest:
lowest = score
print(highest, lowest)