[20251001] PGM / Lv3 / 산 모양 타일링 / 이강현 #1015
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://school.programmers.co.kr/learn/courses/30/lessons/258705
🧭 풀이 시간
40분
👀 체감 난이도
✏️ 문제 설명
정삼각형을 이어붙여서 사다리꼴을 만드는데 2n+1 개수가 필요함.
윗변은 n이고 아랫변은 n+1 길이임.
이때 중간중간 정삼각형을 하나씩 붙여서 산처럼 만든 어떤 형태가 있을때.
정삼각형 1개 혹은 2개가 이어붙여진 형태를 이용해서 이를 채우려고 함.
채우는 경우의 수를 구하기.
🔍 풀이 방법
dp
이전 위치에 놓인 형태가 이후에 영향을 주는지 안 주는지를 분리해서 생각했음.
⏳ 회고
헷갈려잉