4751
![[python] SWEA - 4751. 다솔이의 다이아몬드 장식](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2Fl1vXL%2FbtqP1183Do1%2FAAAAAAAAAAAAAAAAAAAAAOdGFxgzkldHiBCsuuaAzLSiJVNrdeo6aSEQ9FTYW-KO%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1756652399%26allow_ip%3D%26allow_referer%3D%26signature%3Da%252Bc9PnFb8jicAkWaSaH5uuhkZQU%253D)
[python] SWEA - 4751. 다솔이의 다이아몬드 장식
🤔문제 해결 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 ..