본문 바로가기
python-algorithm

백준 11931 수 정렬하기 4

by 무적김두칠 2021. 12. 8.

1
2
3
4
5
6
7
import sys
tmp=[]
for i in range(int(input())):
    tmp.append(int(sys.stdin.readline()))
tmp.sort(reverse=True)
for i in tmp:
    print(i)
cs
반응형

'python-algorithm' 카테고리의 다른 글

백준 16212 정열적인 정렬  (0) 2021.12.09
백준 11170 0의 개수  (0) 2021.12.09
백준 11728 배열 합치기  (0) 2021.12.08
백준 10610 30  (0) 2021.12.08
백준 10384 팬그램  (0) 2021.12.08

댓글