You are given $$$n$$$ intervals $$$[l_i,r_i]$$$, where $$$l_i \le r_i$$$. Your task is to determine if there exist $$$n$$$ integers $$$x_1, x_2, \ldots, x_n$$$ satisfying:
The first line contains an integer $$$t$$$ ($$$1 \le t \le 10^4$$$), the number of test cases.
For each test case:
It is guaranteed that the sum of $$$n$$$ over all test cases does not exceed $$$10^5$$$.
For each test case, output:
The letters in the word YES and NO are case insensitive. For example, YES, yeS and No are all considered valid.
431 5 105 6 1142 3 4 10000002 3 4 1000000534 15 55 233 5134 20 99 299 5131 1 11 1 2
YES 5 5 10 NO YES 34 17 85 255 51 NO
In the first example, we choose $$$5$$$, $$$5$$$ and $$$10$$$ respectively from each range. Then, we have $$$\operatorname{gcd}(5,5,10) = 5 \neq 1$$$.
In the second example, it is not possible to choose $$$n$$$ integers satisfying the condition.