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