Skip to content

Conversation

@zinnnn37
Copy link
Contributor

🧷 문제 링크

그림 교환

🧭 풀이 시간

100분

👀 체감 난이도

✏️ 문제 설명

비트 마스킹 + DP

🔍 풀이 방법

DP 진행할 때 지금 까지 구매한 사람, 다음 구매자, 구매한 가격 3차원으로 진행해야 하나 생각했는데
어차피 dfs 돌릴 거 반환값으로 그림 가격 둬서 2차원으로 해결했습니다.
지금까지 구매한 사람을 비트마스킹으로 관리했습니다.

⏳ 회고

어렵당,,

@ShinHeeEul ShinHeeEul merged commit e712aa0 into main Aug 29, 2025
1 check passed
@zinnnn37 zinnnn37 added the success 👍 해설을 보지 않고 풀었을 때 label Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

success 👍 해설을 보지 않고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants