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

๐ค๋ฌธ์ ํด๊ฒฐ
-
D3 | ?
๐จ ๊ท์น์ ์ฐพ๋ ๋ฌธ์
๐จ ์ฒซ์ค๊ณผ ๋ง์ง๋ง์ค์ ..#. ๊ณผ ๋์ .
๐จ ๋๋ฒ์งธ์ค๊ณผ ๋ค๋ฒ์งธ์ค์ .#.# ๊ณผ ๋์ .
๐จ ๊ฐ์ด๋ฐ ๋ฌธ์๊ฐ ๋ค์ด๊ฐ๋์ค์ #. + ๋ฌธ์ํ๋ + . ๊ณผ ๋ง์ง๋ง์ #
๐ป์์ค ์ฝ๋
for tc in range(int(input())):
word = input()
a = '..#.'
b = '.#.#'
ab_last = '.'
c1 = '#.'
c2 = '.'
c_last = '#'
N = len(word)
answer = ['']*5
answer[0] += a*N + ab_last
answer[1] += b*N + ab_last
for w in word:
answer[2] += c1 + w + c2
answer[2] += c_last
answer[3] += b*N + ab_last
answer[4] += a*N + ab_last
for rw in answer:
print(rw)
๐๋ฌธ์ ํ์ธ
์ถ์ฒ: SW Expert Academy
SW Expert Academy
SW ํ๋ก๊ทธ๋๋ฐ ์ญ๋ ๊ฐํ์ ๋์์ด ๋๋ ๋ค์ํ ํ์ต ์ปจํ ์ธ ๋ฅผ ํ์ธํ์ธ์!
swexpertacademy.com
๋ฐ์ํ
'Algorithm Problem > Python' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
| [python] SWEA - 4579. ์ธ์์ ๋ชจ๋ ํฐ๋ฆฐ๋๋กฌ 2 (0) | 2020.12.14 |
|---|---|
| [python] SWEA - 4698. ํ ๋ค์ค์ ํน๋ณํ ์์ (0) | 2020.12.13 |
| [python] SWEA - 4789. ์ฑ๊ณต์ ์ธ ๊ณต์ฐ ๊ธฐํ (0) | 2020.12.11 |
| [python] SWEA - 5688. ์ธ์ ๊ณฑ๊ทผ์ ์ฐพ์๋ผ (0) | 2020.12.10 |
| [python] SWEA - 9700. USB ๊ฝ๊ธฐ์ ๋ฏธ์คํฐ๋ฆฌ (0) | 2020.12.09 |