Given two non-negative integers $$$n$$$ and $$$m$$$, find the number of pairs of integers $$$(x,y)$$$ such that:
where $$$\&$$$ represents the bitwise AND operation, and $$$\oplus$$$ represents the bitwise XOR operation.
Each test contains multiple test cases. The first line contains the number of test cases $$$t$$$ ($$$1 \le t \le 10^4$$$). The description of the test cases follows.
The only line of each test case contains two integers $$$n$$$ and $$$m$$$ ($$$0 \le n,m \le 10^9$$$).
For each test case, output an integer representing the number of pairs of integers.
50 01 13 769 96114514 191981
1311166306496