25分WA,lct可能炸了,但我是复制的模板

P2387 [NOI2014] 魔法森林

@[p_b_p_b](/user/76481) 可能是这个问题:[link](https://www.luogu.com.cn/discuss/398707?page=1)
by JA2012 @ 2022-05-26 11:23:22


@[p_b_p_b](/user/76481) 抱歉我错了,是你的add函数里面 ```cpp cut(f,x+n); cut(t,x+n); ``` 应该为 ```cpp cut(edge[x].f,x+n); cut(edge[x].t,x+n); ```
by JA2012 @ 2022-05-26 11:53:02


|