AT_arc232_a [ARC232A] Two in the Range
Description
You are given an integer $ N $ , and $ M $ pairs of integers $ (L_1,R_1),(L_2,R_2),\ldots,(L_M,R_M) $ satisfying $ 1\leq L_i
Input Format
The input is given from Standard Input in the following format:
> $ T $ $ \mathrm{case}_1 $ $ \mathrm{case}_2 $ $ \vdots $ $ \mathrm{case}_T $
Each test case is given in the following format:
> $ N $ $ M $ $ L_1 $ $ R_1 $ $ L_2 $ $ R_2 $ $ \vdots $ $ L_M $ $ R_M $
Output Format
Output $ T $ lines. The $ i $ -th line should contain `Yes` if a sequence satisfying the conditions exists for the $ i $ -th test case, and `No` otherwise.
Explanation/Hint
### Sample Explanation 1
In the first test case, the first two conditions imply $ x_1=x_2=x_3=1 $ , but then the third condition is not satisfied. Thus, no sequence satisfies the conditions.
In the second test case, if $ x=(0,1,0,1,0,0,1,0,1,0) $ , the sums over the specified intervals $ [1,4],[3,7],[6,10],[1,4],[2,6] $ are all $ 2 $ . Thus, this sequence satisfies all the conditions.
### Constraints
- $ 1\leq T\leq 250000 $
- $ 2\leq N\leq 500000 $
- $ 1\leq M\leq 500000 $
- $ 1\leq L_i