[Solution] Prime Xor CodeChef Solution | Codechef Solution
For distinct prime integers and , we define positive integers and as:
and , where denotes the bitwise XOR operation.
Given only two integers and and the fact that at least one integer amongst and is odd, find the values of and .
Note:
👇👇👇👇👇
- You need to print the integers and in ascending order.
- It is guaranteed in the input that a unique answer exists.
Input Format
- The first line contains one integer — the number of test cases. Then test cases follow.
Counting Words CodeChef Solution
MATH1 Enrolment CodeChef Solution
Group Assignment CodeChef Solution
Army Training CodeChef Solution
Sort the String CodeChef Solution
Vowel Anxiety CodeChef Solution
Array sorting CodeChef Solution
- Each test case consists of one line which contains integers and .
Output Format
- For each test case, print integers — and in ascending order where .
No comments:
Post a Comment