[백준] 10817

민지·2024년 12월 20일

알고리즘

목록 보기
4/15

문제 링크

num_list = list(map(int,input().split())
num_list.sort()
print(num_list[1])
a,b,c = map(int,input().split())
if a>b:
	a,b = b,a
if b>c:
	b,c = c,b
if a>b:
	a,b = b,a
print(b)

숏코드

print(sorted(input().split(),key=int)[1])
profile
데이터 분석가를 희망합니다!

0개의 댓글