把 dp[i][0]=pnt; 改成 dp[u][0]=pnt;
应该就能过了,那个输入的时候节点不一定按顺序,我一开始也上当了。
by chenly8128 @ 2024-04-09 22:15:22
[你代码AC记录](https://www.luogu.com.cn/record/155110095)
by chenly8128 @ 2024-04-09 22:25:48
哇谢谢,已关
by _QWQ_TAT_ @ 2024-04-10 21:29:02