cf/mirror

Minimum Path Cover

CF
2211E2500· grandmaster4s256 MB⇄ interactive

Examples

Sample 1of 1
Input
4
5
11 0
7 0
5 0
3 2 4 5
2 2 2 3
5
10 0
8 0
6 0
4 0
2 4 2 3 4 5
6
221 0
143 1 6
77 1 5
35 1 4
15 1 3
6 1 2
3
1000000000000000000 0
999999999999999998 0
999999999999999998 2 3 2
Output
1
1
1
3
5
1
1
1
1
4
1
1
2
2
3
3
1
1
2
2211E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…