cf/mirror

Hydra

CF
243B2000· candidate master2s256 MB⌨ stdin/stdout

Examples

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