| TheForces Round #44 (DIV3.5-Forces) |
|---|
| Finished |
Alice and Bob are playing a game on a $$$1 \times n$$$ grid, where:
For example, $$$n=8$$$, $$$x=4$$$ and $$$y=7$$$, where Alice moves first:
A player loses if no valid move exists on their turn. The game terminates when a player cannot move.
Your task is to determine whether Alice will win, assuming that the strategies of the two players are optimal.
The first line contains the number of test cases $$$t$$$ ($$$1 \le t \le 10^3$$$).
The only line of each test case contains three integers $$$n$$$, $$$x$$$, and $$$y$$$ ($$$1 \le n \le 10$$$, $$$1 \le x, y \le 10$$$, $$$x \neq y$$$).
For each test case, if Alice will win assuming that the strategies of the two players are optimal, output "YES" (without quotes) in a new line. Otherwise, output "NO".
32 1 25 1 510 7 3
NO YES YES
In the first test case, Alice can not do any valid move from the beginning. Thus, Alice will lose.
In the second test case, Alice can do move $$$1 \rightarrow 2 \rightarrow 3 \rightarrow 4$$$. After that, Bob can not do any valid move. Thus, Alice will win.
| Name |
|---|


