Skip to content

Commit

Permalink
#6 백준 계수정렬
Browse files Browse the repository at this point in the history
  • Loading branch information
hyesuuou committed Feb 21, 2022
1 parent 4406a70 commit cd38534
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Boj/정렬/10989.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import sys
input = sys.stdin.readline
n = int(input())
count_array = [0] * 10001

for _ in range(n):
count_array[int(input())] += 1

for i in range(len(count_array)):
for _ in range(count_array[i]):
print(i)

0 comments on commit cd38534

Please sign in to comment.