๋ฐ์ํ
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 | 31 |
Tags
- kakao
- ์ฝ๋ฉํ ์คํธ
- boj
- ์ผ์ฑ
- SSAFY
- SW์ญ๋ํ ์คํธ
- ํํ
- ๋ค์ด๋๋ฏนํ๋ก๊ทธ๋๋ฐ
- SWEA
- ์คํ
- ์๋ฐ์คํฌ๋ฆฝํธ
- ์๋ฃ๊ตฌ์กฐ
- ์๊ณ ๋ฆฌ์ฆ
- ๊ทธ๋ํ
- ํ๋ก๊ทธ๋๋จธ์ค
- Blind
- javascript
- DFS
- ํ์ด์ฌ
- Python
- ์์ ํ์
- ์ธํผ
- ์นด์นด์ค
- DP
- BFS
- algorithm
- sort
- ๋ฐฑ์ค
- Backjoon
- ์ฝํ
Archives
- Today
- Total
๋ง์ํ
[python] SWEA - 13547. ํ์จ๋ฆ ๋ณธ๋ฌธ
๋ฐ์ํ

๐ค๋ฌธ์ ํด๊ฒฐ
๋ด๊ฐ ์ด๊ธด ํ์์ ๋จ์ ๊ฒ์์ ํ์๋ฅผ ๊ตฌํ๋ค.
๊ทธ ๋์ ํฉ์ด 8๋ณด๋ค ํฌ๋ฉด ๋ด๊ฐ ์ด๊ธธ ๊ฐ๋ฅ์ฑ์ด ์์ผ๋ฏ๋ก ๋ต์ YES
๐ป์์ค ์ฝ๋
T = int(input())
# ์ฌ๋ฌ๊ฐ์ ํ
์คํธ ์ผ์ด์ค๊ฐ ์ฃผ์ด์ง๋ฏ๋ก, ๊ฐ๊ฐ์ ์ฒ๋ฆฌํฉ๋๋ค.
for test_case in range(1, T + 1):
print(f'#{test_case}', end=' ')
game_result = input()
win_cnt = 0
for result in game_result:
if result == 'o':
win_cnt += 1
rest_game = 15 - len(game_result)
if win_cnt + rest_game >= 8:
print('YES')
else:
print('NO')
๐๋ฌธ์ ํ์ธ
์ถ์ฒ: SW Expert Academy
๋ฐ์ํ