[20250902] BOJ / G5 / 캠프 준비 / 한종욱 #797
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/16938
🧭 풀이 시간
30분
👀 체감 난이도
✏️ 문제 설명
문제에서 주어진 조건에 맞춰서 캠프에 사용할 문제를 고르는 방법의 수
🔍 풀이 방법
N이 최대 15이기 때문에$2^{15}$ 의 시간복잡도 안에 충분히 풀 수 있을 거 같아서 dfs 조합 탐색으로 풀었다. 배열의 합도 Integer 범위 안에 들어 오는 것도 체크했다.
⏳ 회고
오랜만에 쉬운 문제 풀어서 마음만 편했다.