[20251126] BOJ / G4 / 우유 도시 / 김민진 #1514
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.
🧷 문제 링크
우유 도시
🧭 풀이 시간
40분
👀 체감 난이도
✏️ 문제 설명
우유를 0 -> 1 -> 2 -> 0 -> ... 순서로만 마실 수 있음
오른쪽 혹은 아래로만 움직일 수 있음
마실 수 있는 우유의 최대 갯수는?
🔍 풀이 방법
dp인데 직전에 어떤 우유를 마셨는지 저장해하려고 Milk 객체를 기반으로 dp 배열을 만들었음
⏳ 회고
직전에 어떤 우유를 마셨는지를 고려 안해서 틀림