Notice
Recent Posts
Recent Comments
Link
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- ๊ตญ๋น์ง์
- ๋ฐฑ์ค
- javascript
- ํ๋ก์ ํธ
- error
- ํ ์ดํ๋ก์ ํธ
- ๊ทธ๋ฆฌ๋
- ์ฝ๋ฉ
- react
- Til
- ํฌ๋กค๋ง
- mongodb
- ํ๋ก ํธ์๋
- Python
- ๋ ธ๋ง๋์ฝ๋
- ์๊ณ ๋ฆฌ์ฆ
- HTML
- ์ฝ๋ฉ์ ํ
- JS
- fe
- ๊ฐ๋ฐ
- ํ์ด์ฌ
- CSS
- node.js
- ๋ชจ๊ฐ์ฝ
- ์ฝ๋ฉํ ์คํธ
- heapq
- ํ๋ก๊ทธ๋๋จธ์ค
- KDT
- ๋๋ฆผ์ฝ๋ฉ
Archives
- Today
- Total
๋ชฉ๋ก๋ฉ๋ชจ๋ฆฌ๊ด๋ฆฌ (1)
๐ฑ โ ๐ณ
[๋ฐฑ์ค] 10989๋ฒ: ์ ์ ๋ ฌํ๊ธฐ 3 python
์ฒ์ ์์ฑํ ์ฝ๋ import sys n = int(input()) m = [] for i in range(n): m.append(int(sys.stdin.readline())) m.sort() for i in m: print(i) โ ๋ฉ๋ชจ๋ฆฌ ์ด๊ณผ ๋ฐ์ ์๊ฐ๋ณต์ก๋๋ฅผ ์ค์ด๊ธฐ ์ํด sys๋ฅผ ์ฐ๋ ๊ฑด ์๊ฒ ์ง๋ง ๋ฉ๋ชจ๋ฆฌ ์ด๊ณผ,, ๊ณต๊ฐ๋ณต์ก๋๋ฅผ ์ค์ด๊ธฐ ์ํด์๋ ์ด๋ป๊ฒ ํด์ผํ๋ ์ง ๋ชฐ๋ผ์ ์ธํฐ๋ท์ ์ฐพ์๋ดค๋ค. ์ ๋ต ์ฝ๋ import sys n = int(sys.stdin.readline()) m = [0] * 10001 for i in range(n): m[int(sys.stdin.readline())] += 1 for i in range(10001): if m[i] != 0: for j in range(m[i]): p..
Algorithms
2022. 10. 2. 12:28