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)
'알고리즘 문제 풀기 > Codeup' 카테고리의 다른 글
Codeup 1295 - 알파벳 대소문자 변환 (0) | 2019.02.15 |
---|---|
Codeup 1294 - 씨저의 암호 2 (0) | 2019.02.14 |
Codeup 1292 - 범인을 잡아라 1 (0) | 2019.02.13 |
Codeup 1291 - 바이러스 백신 (0) | 2019.02.13 |
Codeup 1290 - 대금 만들기 (0) | 2019.02.12 |