https://www.luogu.com.cn/paste/vhvfaszi 写了个 O(n3)O(n^3)O(n3) 的树形 DP,官方题解也是 O(n3)O(n^3)O(n3) 的,结果可以过,但我的代码被卡了13个 TLE。 求大佬优化代码常数