爆零求deQAQ,sum都对但是max不对QAQ

P3313 [SDOI2014] 旅行

23行 ```cpp if(hson[now]=-1 <- here ``` 应改为 ```cpp if(hson[now]==-1||siz[to]>siz[hson[now]])hson[now]=to; ```
by 望月Asta @ 2021-08-27 14:47:45


@[望月Asta](/user/122520) 实测这不是问题(
by YaeMik0 @ 2021-08-27 14:48:26


函数``max_chain`` 最后的更新改为 ```cpp if(dep[x]>dep[y])swap(x,y); ans=max(ans,max_query(r[now_c],1,n,dfn[x],dfn[y])); ```
by 望月Asta @ 2021-08-27 14:53:07


@[望月Asta](/user/122520) 活跃在洛谷所有角落的望月asta
by liubw_ @ 2021-09-29 23:00:56


|