摘要: #虚树 讲解 ##模板 点击查看代码 struct Tree{ //原树 int tot,head[maxn],nx[maxn],to[maxn]; ll w[maxn]; void add(int x,int y,ll z){ to[++tot]=y;nx[tot]=head[x];head[x] 阅读全文
posted @ 2022-07-26 16:45 I_N_V 阅读(32) 评论(0) 推荐(0) 编辑