## GUPTA MECHANICAL

IN THIS WEBSITE I CAN TELL ALL ABOUT TECH. TIPS AND TRICKS APP REVIEWS AND UNBOXINGS ALSO TECH. NEWS .............

## [Solution] Xor and Multiply CodeChef Solution | CodeChef Problem Solution 2022

JJ has three integers $N$$A$ and $B$ where $0\le A,B<{2}^{N}$. He wants to find a third integer $X$ such that:

• $0\le X<{2}^{N}$
• the value of $\left(A\oplus X\right)×\left(B\oplus X\right)$ is maximum.

Here $\oplus$ represents the Bitwise XOR operator.

Can you help him find such an integer $X$? If there are multiple integers which satisfy the given

Solution Click Below:-  👉
👇👇👇👇👇

conditions, print any.

### Input Format

• The first line will contain $T$ - number of test cases. Then the test cases follow.
• The first and only line of each test case contains three integers $N$$A$ and $B$ - the integers

•  mentioned in the problem statement.

### Output Format

For each test case, output an integer $X$ which satisfies the given conditions.

If multiple answers exist, print any.

### Constraints

• $1\le T\le 5000$
• $1\le N\le 30$