An easy problem about trees
457F3200· legendary gm2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
43-1 1 21055-1 1 2-1 3 4105207-1 1 2-1 3 4-1 5 6123411-1 1 2-1 3 4-1 5 6-1 7 8157-1 9 1078911
Output
101048
58%
457F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…