Tree with Maximum Cost
1092F1900· candidate master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
89 4 1 7 10 1 6 51 22 31 41 55 65 75 8
Output
121
Sample 2of 2
Input
11337
Output
0
58%
1092F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…