cf/mirror

Min-Fund Prison (Easy)

CF
1970G11900· candidate master1.5s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
2
2 1 3
1 2
8 7 76
3 1
3 2
2 4
2 5
4 6
4 7
7 8
Output
2
32
1970G1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…