XOR split
Practice
3.4 (12 votes)
Bit manipulation
Basic programming
Basics of bit manipulation
Problem
24% Success 5867 Attempts 20 Points 2s Time Limit 256MB Memory 1024 KB Max Code
You are given a number
Input format
- The first line contains
denoting the number of test cases. - The first line of each test case contains an integer
.
Output format
For each test case, print the answer.
Constraints
Sample Input
2 0 5
Sample Output
0 1
Explanation
For the first testcase we can't find two numbers.
For the next testcase possible numbers are
Code Editor
Please login to use the editor
You need to be logged in to access the code editor
Submissions
Please login to view your submissions
Similar Problems
Points:20
602 votes
Tags:
Easy
Points:20
196 votes
Tags:
EasyHash MapsOpen
Points:20
42 votes
Tags:
AlgorithmsApprovedBit manipulationEasyOpen
Editorial
Login to unlock the editorial
Please login to use the editor
You need to be logged in to access the code editor