A - Four Points 解説 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)

投稿日時:
最終更新: