Skip to content

Commit 0559dad

Browse files
authored
Create 7.py
1 parent 1c1c83d commit 0559dad

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

6/7.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# N 입력 받기
2+
n = int(input())
3+
4+
# N개의 정수를 입력 받아 리스트에 저장
5+
array = []
6+
for i in range(n):
7+
array.append(int(input()))
8+
9+
# 파이썬 정렬 라이브러리를 이용하여 정렬 수행
10+
array = sorted(array, reverse=True)
11+
12+
# 정렬이 수행된 결과를 출력
13+
for i in array:
14+
print(i, end=' ')

0 commit comments

Comments
 (0)