cf/mirror

Split Into Two Sets

CF
1702E1600· expert2s256 MB⌨ stdin/stdout

Examples

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