动态规划,树形DP

Sorry, there is no problem in the problem set