#P12147. 【MX-X11-T1】「蓬莱人形 Round 1」仅此而已,就已经足够了
【MX-X11-T1】「蓬莱人形 Round 1」仅此而已,就已经足够了
Description
Define , where denotes the bitwise XOR operation.
Given two integers and , compute the value of .
For knowledge about XOR operations, you may refer to the Wikipedia Page.
Input Format
Multiple test cases.
The first line contains a positive integer indicating the number of test cases.
Each of the next lines contains two integers and .
Output Format
Output lines, each containing the answer for the corresponding query.
9
3 0
15 0
9 4
3 6
17 28
9 16
8 23
15 11
4 11
12
80
160
256
4831838208
655360
75497472
32768
10240
Hint
Explanation #1
Sample 1 Explanation:
For the first test case:
Thus, the answer is .
Constraints
- 20% of data:
- Additional 20% of data:
- Additional 30% of data:
- 100% of data: , ,
Translated by DeepSeek R1
京公网安备 11011102002149号