Score of a Tree
1777D1900· candidate master2s512 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
161 21 33 43 53 6
Output
288
58%
1777D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…
161 21 33 43 53 6
288