#P1260B. Obtain Two Zeroes
Obtain Two Zeroes
No submission language available for this problem.
Description
You are given two integers and . You may perform any number of operations on them (possibly zero).
During each operation you should choose any positive integer and set , or , . Note that you may choose different values of in different operations.
Is it possible to make and equal to simultaneously?
Your program should answer independent test cases.
The first line contains one integer () — the number of test cases.
Then the test cases follow, each test case is represented by one line containing two integers and for this test case ().
For each test case print the answer to it — YES if it is possible to make and equal to simultaneously, and NO otherwise.
You may print every letter in any case you want (so, for example, the strings yEs, yes, Yes and YES will all be recognized as positive answer).
Input
The first line contains one integer () — the number of test cases.
Then the test cases follow, each test case is represented by one line containing two integers and for this test case ().
Output
For each test case print the answer to it — YES if it is possible to make and equal to simultaneously, and NO otherwise.
You may print every letter in any case you want (so, for example, the strings yEs, yes, Yes and YES will all be recognized as positive answer).
Samples
Note
In the first test case of the example two operations can be used to make both and equal to zero:
- choose and set , . Then , ;
- choose and set , . Then , .