Skip to content

Conversation

@oncsr
Copy link
Contributor

@oncsr oncsr commented Jun 7, 2025

🧷 문제 링크

https://www.acmicpc.net/problem/16902

🧭 풀이 시간

40분

👀 체감 난이도

✏️ 문제 설명

수열 A가 있다.
이 수열에 아래 작업을 M번 수행한다. 각 작업은 정수 x로 나타내어지며, 작업은 총 두 단계로 이루어진다.

  • 수열 A의 모든 원소를 x와 xor한 값으로 바꾼다.
  • mex(A)를 출력한다.

🔍 풀이 방법

[사용한 알고리즘]

  • 트라이

A에 존재하지 않는 수들만 전부 트라이에 넣어준다.

지금까지의 x값의 누적 XOR값으로 트라이에서 최솟값을 구할 수 있다.

⏳ 회고

..

@ShinHeeEul ShinHeeEul merged commit 821523e into main Jun 7, 2025
1 check passed
@oncsr oncsr added the success 👍 해설을 보지 않고 풀었을 때 label Jun 7, 2025
@lkhyun
Copy link
Contributor

lkhyun commented Jun 10, 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.

4 participants