cf/mirror

Escape The Maze (easy version)

CF
1611E11700· expert2s256 MB⌨ stdin/stdout

Examples

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