[Solution] Alternate Additions CodeChef Solution
[Solution] Alternate Additions CodeChef Solution | CodeChef Problem Solution 2022
Chef has numbers and .
Chef will perform some operations on .
In the operation:
- Chef will add to if is odd.
- Chef will add to if is even.
Solution Click Below:- CLICK HERE
Chef can stop at any instant. Can Chef make equal to ?
Input Format
- The first line contains a single integer — the number of test cases. Then the test cases follow.
- The first and only line of each test case contains two space separated integers and .
Output Format
For each test case, output YES
if Chef can make and equal, NO
otherwise.
Note that the checker is case-insensitive. So, YES
, Yes
, yEs
are all considered same.
No comments:
Post a Comment