Birthday xor
CodeChefOpen on judge ↗
Arya's birthday is here and he has received many gifts. He has received a total of N gifts from his N friends. Each of these friends has gifted him with K numbers. Now, for each of these gifts he received, Arya has calculated the XOR of all the numbers in the i-th gift. Furthermore, he found the bitwise AND, S of all these XOR values. Since he hates being the center of attention in a party, he h
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