[20250912] BOJ / G4 / RGB거리 2 / 한종욱 #874
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/17404
🧭 풀이 시간
30분
👀 체감 난이도
✏️ 문제 설명
기존 RGB에서 마지막에 1번집과 N번집을 비교하는 문제, 그래서 최소 cost 얼만데?
🔍 풀이 방법
집을 하나하나 강제해서 DP를 3번 돌림
⏳ 회고
너무 한번에 풀려고 하는 것보다 3번같이 적은 양은 for문보다 직접 때려박는게 더 구현이 빠르다.