Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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/2091
🧭 풀이 시간
2일
👀 체감 난이도
✏️ 문제 설명
1,5,10,25원 동전이 있을 때 동전을 가장 많이 사용해서 K원을 만드시오.
🔍 풀이 방법
dp를 이용해서 dp[K]를 구하자. 동전을 이전 단계에서 한 개 추가하는 것으로 구현하고 하나 추가했을때 이전 조합을 붙여넣도록 구현.
⏳ 회고
핵심 부분은 적은 동전을 우선하여 dp값을 업데이트하되 적은 코인을 사용할 수 없을 때 큰 코인을 사용해서 업데이트하는 기준을 잘 삼아야 하는 것 같다.