728x90
반응형
단순 정렬 문제이다.
li = list(map(int, input().split()))
for i in range(5):
for j in range(4):
if li[j] > li[j+1]:
t = li[j]
li[j] = li[j+1]
li[j+1] = t
print(*li)
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 2628번 종이자르기(python) (0) | 2021.02.21 |
---|---|
백준 알고리즘 10610번 30(python) (0) | 2021.02.21 |
백준 알고리즘 2693번 N번째 큰 수(python) (0) | 2021.02.21 |
백준 알고리즘 13311번 행운의 편지(python) (0) | 2021.02.21 |
백준 알고리즘 9317번 Monitor DPI(python) (0) | 2021.02.20 |