个人记录做题笔记98.9 #7855. 不跳棋 【模板】静态toptree [P9527 [JOISC 2022] 洒水器](https://www.luogu.com.cn/problem/P9527) 直接打标记,记 f_u,d 为给 u 子树内距离为 d 的乘上 f_u,d,查询时直接跳父亲…