## October Lunchtime AND Plus OR question solution -

October Lunchtime AND Plus OR question solution Read the problem statement carefully-

Given an integer , find two non-negative integers and such that , where is the bitwise AND operation and is the bitwise OR operation.

### Input

- The first line of the input contains a single integer denoting the number of test cases. The description of test cases follows.
- The first and only line of each test case contains a single integer .

### Output

If there is no valid pair , print a single line containing the integer . Otherwise, print a single line containing two space-separated integers and .

If there are multiple solutions, you may print any one of them.

### Constraints

### Subtasks

Subtask #1 (30 points):

Subtask #2 (70 points): original constraints

### Example Input

```
2
1
8
```

### Example Output

```
0 1
5 3
```

Join telegram for more editorial`-https://t.me/competitiveProgrammingDiscussion`

Solution -

This question is very simply you need simple logic to solve this question logic is

a^ 0=0;

b OR 0= b;

Now simply print 0 , b this will be correct ans for all test cases.

Here is my code-

## Comments

## Post a Comment