求助:调了两天了没调出来,9个点RE,1个点AC

P3384 【模板】重链剖分/树链剖分

[测评记录](https://www.luogu.com.cn/record/57649552)
by tzyt @ 2021-09-07 22:04:48


艹,破案了 ```cpp if (dep[chain_top[node1] < dep[chain_top[node2]]]) { swap(node1, node2); } ``` 现在看里面那几个数组的括号我自己都想笑。。。关键打成这样编译的时候还不会报错,真的找了我好久
by tzyt @ 2021-09-08 03:27:00


|