Maximum White Subtree
1324F1800· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
90 1 1 1 0 0 0 0 11 21 33 43 52 64 76 85 9
Output
2 2 2 2 2 1 1 0 2
Sample 2of 2
Input
40 0 1 01 21 31 4
Output
0 -1 1 -1
58%
1324F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…