cf/mirror

Doremy's Number Line

CF
1764E2400· grandmaster2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
6
4 16
5 3
8 12
10 7
15 1
4 16
8 12
10 7
15 1
5 3
4 16
10 7
15 1
5 3
8 12
4 16
15 1
5 3
8 12
10 7
1 1000000000
500000000 500000000
2 1000000000
1 999999999
1 1
Output
NO
YES
YES
YES
NO
YES
1764E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)