[20250827] BOJ / G3 / 비트코인은 신이고 나는 무적이다 / 한종욱 #753
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/23257
🧭 풀이 시간
120분
👀 체감 난이도
✏️ 문제 설명
N개의 숫자 중 M를 중복 허용해서 뽑고 그 모든 숫자를 xor했을 때 최댓값
🔍 풀이 방법
DP인데 내 방식은 DP 같진 않더라.
DP의 요소를 TreeSet으로 정의하고 dp[i]는 i개를 선택한 모든 경우의 수를 담고 있다.
⏳ 회고
첫 풀이는 솔직히 왜 안되는지 잘 모르겠다.