![[백준 알고리즘] 10989번 수 정렬하기 3 (Python)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fv3QaL%2FbtqDLDHCzxn%2FTWcSvXxpSkOU8NJkzUI7X1%2Fimg.png)
언어, 알고리즘 공부/백준2020. 4. 29. 14:19[백준 알고리즘] 10989번 수 정렬하기 3 (Python)
딕셔너리를 이용해 카운팅 정렬을 해보았으나 시간초과로 작렬히 실패했다..! import sys n = int(sys.stdin.readline()) count = {} for _ in range(n): num = int(sys.stdin.readline()) if num in count: count[num] = count[num] + 1 else: count[num] = 1 for sorted in sorted(count.items()): for i in range(sorted[1]): print(sorted[0]) import sys n = int(sys.stdin.readline()) count = [0] * 10001 for i in range(n): count[int(sys.stdin.readli..