Minimal k-covering
976F2500· grandmaster1.5s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
3 3 71 22 31 33 23 32 12 1
Output
03 3 7 46 1 3 6 7 4 5
Sample 2of 2
Input
1 1 51 11 11 11 11 1
Output
01 52 4 53 3 4 54 2 3 4 55 1 2 3 4 5
58%
976F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…