#2782. XOR World
0
XOR World
XOR World
题目描述
Let be the exclusive OR of . Find .
What is exclusive OR?
When is written in base two, the digit in the 's place () is if, the number of integers among whose binary representations have in the 's place, is odd, and if that count is even.
For example, the exclusive OR of and is . (When written in base two: the exclusive OR of and is .)
输入格式
Input is given from Standard Input in the following format:
输出格式
Compute and print it.
2 4
5
123 456
435
123456789012 123456789012
123456789012
提示
All values in input are integers.
are , , in base two, respectively.
The exclusive OR of these is , which is in base ten.
标签: AtCoder|abc121D
来源
AtCoder|abc121D