#P15445. 「IXOI R1」永远在一起!
「IXOI R1」永远在一起!
Description
You have come to the wishing well for consecutive days, everyday you have a positive integer in your hand, representing your wish.
Whether a wish can come true or not can not totally be controlled by an individual, so you are also given two parameters and each day by the well.
If there exist two unequal natural numbers and , where , the well will consider your wish achievable and return YES as an answer, otherwise it will consider the wish too difficult to realize and give you NO.
Here, denotes the bitwise OR operation between and , you can also consider it as | in C++. denotes the absolute value of .
You're eager to know the result every day.
Input Format
The first line of the input contains a single integer : the amount of days you make wish.
The next lines each contains three integers: and .
Output Format
lines, each contains a string YES or NO, representing the result of the day.
2
5 2 9
3 9 2
YES
NO
Hint
Example Explanation
For , can meet the conditions.
For , no and can meet the conditions.
Constraints
This problem uses bundled testing.
| Subtask Id | Special property | Points | ||
|---|---|---|---|---|
| No | ||||
| Yes | ||||
| No |
Special property: It is guaranteed that .
For all data, it is guaranteed that:
$1\le Q\le 10^5,1\le x,y\le 10^9,1\le z\le2\times10^9$.
京公网安备 11011102002149号