[20251101] BOJ / G1 / 할 일 정하기 1 / 설진영 #1291
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.
🧷 문제 링크
백준 1311번 - 할 일 정하기 1
🧭 풀이 시간
20분
👀 체감 난이도
✏️ 문제 설명
N명의 사람에게 N개의 일을 1:1로 배정하는 문제.
각 사람이 각 일을 할 때의 비용이 주어지며, 총 비용의 최솟값을 구해야 한다.
🔍 풀이 방법
dp[person][mask]: person번째 사람까지 배정했을 때, mask 상태(배정된 일들)에서의 최소 비용
⏳ 회고
혁준이가 추천해줬다
혁준이가 N (1 ≤ N ≤ 20) 조건 있으면 비트 DP 라고 힌트도 줬다