Tag: 树形DP
Codeforces Round 196 (Div. 2)