cf/mirror

New Year's Puzzle

CF
1472F2100· master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
3
 
5 2
2 2
1 4
 
3 2
2 1
2 3
 
6 4
2 1
2 3
2 4
2 6
Output
YES
NO
NO
1472F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)