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
- ์ฝ๋ฉ์ ํ
- react
- ๊ฐ๋ฐ
- ์ฝ๋ฉํ ์คํธ
- ์ฝ๋ฉ
- JS
- HTML
- node.js
- Python
- ๋ชจ๊ฐ์ฝ
- ๊ทธ๋ฆฌ๋
- ๋ ธ๋ง๋์ฝ๋
- Til
- ๋ฐฑ์ค
- javascript
- ํ๋ก๊ทธ๋๋จธ์ค
- ํ ์ดํ๋ก์ ํธ
- ํ์ด์ฌ
- ํ๋ก ํธ์๋
- ๊ตญ๋น์ง์
- ํฌ๋กค๋ง
- mongodb
- ์๊ณ ๋ฆฌ์ฆ
- fe
- ํ๋ก์ ํธ
- heapq
- ๋๋ฆผ์ฝ๋ฉ
- error
- KDT
- CSS
Archives
- Today
- Total
๐ฑ → ๐ณ
[๋ฐฑ์ค] 1157๋ฒ: ๋จ์ด ๊ณต๋ถ python ๋ณธ๋ฌธ
728x90
https://www.acmicpc.net/problem/1157
์ ๋ต ์ฝ๋:
word = input().upper()
uni = list(set(word))
cnt=[]
for i in uni:
count = word.count(i)
cnt.append(count)
if cnt.count(max(cnt))>1:
print("?")
else:
max_index=cnt.index(max(cnt))
print(uni[max_index])
728x90
'Algorithms' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค] 5622๋ฒ: ๋ค์ด์ผ python (0) | 2022.07.15 |
---|---|
[๋ฐฑ์ค] 1152๋ฒ: ๋จ์ด์ ๊ฐ์ python (0) | 2022.07.15 |
[๋ฐฑ์ค] 2675๋ฒ: ๋ฌธ์์ด ๋ฐ๋ณต python (0) | 2022.07.15 |
[๋ฐฑ์ค] 10809๋ฒ: ์ํ๋ฒณ ์ฐพ๊ธฐ (0) | 2022.07.12 |
[๋ฐฑ์ค] 11654๋ฒ: ์์คํค ์ฝ๋ python (0) | 2022.07.12 |