A - Four Points Editorial by spheniscine


The clever and lazy solution:

For each dimension, you want to find the “odd one out” among three values. It turns out that if you take the bitwise xor of the three values, the two equal values will cancel out, leaving the remaining value. (Given that xor is involutive, commutative, and associative)

posted:
last update: