TheForces Round #25(5^2-Forces) |
---|
Finished |
You're given three non-negative integers $$$n,x$$$ and $$$y$$$.
Determine if you can construct an array $$$a$$$ of size $$$n$$$ satisfying:
Here $$$|$$$ denotes the bitwise OR operation and $$$\&$$$ denotes the bitwise AND operation.
If you can construct such array $$$a$$$ output YES.Otherwise,output NO.
Each test contains multiple test cases. The first line contains the number of test cases $$$t$$$ ($$$1 \le t \le 10^5$$$). The description of the test cases follows.
The only line of each testcase contains three integers $$$n,x,y$$$ ($$$1 \le n \le 2^{30}-1,0 \le x,y \le 2^{30}-1$$$).
For each testcase output in a new line — If you can construct such array $$$a$$$ output YES.Otherwise,output NO.
41 0 03 14 21000000000 14 23 6 5
YES YES NO NO
Name |
---|