Skip to content

Commit

Permalink
[Bronze I] Title: 수 정렬하기 3, Time: 9472 ms, Memory: 31120 KB -BaekjoonHub
Browse files Browse the repository at this point in the history
  • Loading branch information
srlee056 committed Mar 30, 2024
1 parent bdfc93d commit d4c369d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions 백준/Bronze/10989. 수 정렬하기 3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

### 성능 요약

메모리: 32432 KB, 시간: 10372 ms
메모리: 31120 KB, 시간: 9472 ms

### 분류

정렬

### 제출 일자

2024년 3월 30일 19:48:50
2024년 3월 30일 20:03:55

### 문제 설명

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
n = int(sys.stdin.readline())


num_dict = {}
nums = [0 for _ in range(10001)]
for _ in range(n):
m = int(sys.stdin.readline())
num_dict[m] = num_dict.get(m, 0) + 1
nums[m] += 1


for i in range(1, 10001):
if i in num_dict:
for _ in range(num_dict[i]):
print(i)
for i, num in enumerate(nums):
for _ in range(num):
print(i)

0 comments on commit d4c369d

Please sign in to comment.