cf/mirror

Eulerian Line Graph

CF
2120G3000· legendary gm2s256 MB⌨ stdin/stdout

Examples

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