cf/mirror

Mad City

CF
1873H1700· expert4s256 MB⌨ stdin/stdout

Examples

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