[Solution] Triple Xor CodeChef Solution
You are given two integers and . Find number of ordered triplets that satisfy the following conditions:
- and are distinct
Here, denotes the bitwise XOR operation.
Input Format
- The first line contains a single integer — the number of test cases. Then the test cases follow.
- The first and only line of each test case contains two space-separated integers and — the
Solution Click Below:- CLICK HERE
- parameters mentioned in the statement.
Output Format
For each test case, output on a new line the number of triplets that satisfy the given conditions.
No comments:
Post a Comment