摘要: \(\text{Solution}\) 统计树上 \(x\) 到 \(y\) 路径不同数的种类数 可以树上莫队 离线的树上莫队就是把树用欧拉序拍下来,然后和序列上的莫队一样即可 \(\text{Code}\) #include <cstdio> #include <algorithm> #inclu 阅读全文
posted @ 2022-04-07 22:18 leiyuanze 阅读(42) 评论(0) 推荐(0)