cf/mirror

Minimal k-covering

CF
976F2500· grandmaster1.5s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
3 3 7
1 2
2 3
1 3
3 2
3 3
2 1
2 1
Output
0
3 3 7 4
6 1 3 6 7 4 5
Sample 2of 2
Input
1 1 5
1 1
1 1
1 1
1 1
1 1
Output
0
1 5
2 4 5
3 3 4 5
4 2 3 4 5
5 1 2 3 4 5
976F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…