Skip to content

Commit 5fee96e

Browse files
committed
[BOJ] 10989 수 정렬하기 (B1)
1 parent a8e1c98 commit 5fee96e

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

심수연/11주차/.cph/.260311.py_d62e0917118cd42d4bd94bfcd9d23018.prob

Lines changed: 0 additions & 1 deletion
This file was deleted.

심수연/11주차/260311.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
# https://www.acmicpc.net/problem/10817
1+
# https://www.acmicpc.net/problem/10989
22

33
import sys
44
input = sys.stdin.readline
55

6-
nums = list(map(int, input().split()))
6+
N = int(input())
7+
count = [0] * 10001
78

8-
nums.sort(reverse=True)
9+
for _ in range(N):
10+
num = int(input())
11+
count[num] += 1
912

10-
print(nums[1])
13+
for i in range(1, 10001):
14+
for _ in range(count[i]):
15+
print(i)

0 commit comments

Comments
 (0)