Chef and Interactive XOR
**This is an interactive problem.** Chef and Cheffa are playing a game. Chef has a sequence of positive integers $a_1, a_2, \dots, a_N$; Cheffa should find the values of all elements of this sequence. Cheffa may ask Chef at most $N$ questions. In each question, Cheffa tells Chef 3 distinct indices $i$, $j$ and $k$, and Chef responds with an integer $a_i \oplus a_j \oplus a_k$ ($\oplus$ denotes
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start