cf/mirror

King Escape

CF
1033A1000· newbie1s256 MB⌨ stdin/stdout

Examples

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