Subtree Removal Game
2206B2500· grandmaster3s1024 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
71 2 2 1 5 5
Output
4
Sample 2of 2
Input
91 1 3 2 5 4 5 5
Output
7
58%
2206B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…
71 2 2 1 5 5
4
91 1 3 2 5 4 5 5
7