[20251122] BOJ / G5 / 별 찍기 - 10 / 강신지 #1477
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🧷 문제 링크
https://www.acmicpc.net/problem/2447
🧭 풀이 시간
40분
👀 체감 난이도
✏️ 문제 설명
패턴 별 찍기
🔍 풀이 방법
재귀로 규칙 찾아서 풀면 된다.
한 변 길이(n)의 1/3이 한 패턴이고, 총 9개의 패턴으로 구성되어있다.
다만 가운데, 즉 5번째 패턴은 공백으로 이루어져야 한다.
반복문 돌리면서 count가 5일 경우 공백 처리를 하도록 했다.
⏳ 회고
예전에 틀린 채로 놔뒀던 문제를 풀어봤다.
역시 머리로는 알겠는데 코드로 구현하기 까다로웠다.