[Solution] The Third Three Number Problem Codeforces Solution
You are given a positive integer . Your task is to find any three integers , and () for which , or determine that there are no such integers.
Here denotes the bitwise XOR of and . For example, and .
Each test contains multiple test cases. The first line contains a single integer () — the number of test cases. The following lines contain the descriptions of the test cases.
The Third Three Number Problem Codeforces Solution
Almost Ternary Matrix Codeforces Solution
The Third Problem Codeforces Solution
Almost Triple Deletions CodeForces Solution
Three Days Grace Codeforces Solution
The only line of each test case contains a single integer ().
For each test case, print any three integers , and () for which . If no such integers exist, print .
No comments:
Post a Comment