Minimal Diameter Forest
1092E2000· candidate master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
4 21 22 3
Output
24 2
Sample 2of 3
Input
2 0
Output
11 2
Sample 3of 3
Input
3 21 32 3
Output
2
58%
1092E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…