摘要: 虚树第一题 对于询问多,但是询问涉及的总点数少的题型考虑建一棵虚树。 懒得讲解题目 dtoj过了,洛谷T了不管了 以下代码: #include<bits/stdc++.h> #define il inline #define _(d) while(d(isdigit(ch=getchar()))) 阅读全文
posted @ 2018-12-13 11:48 Jessiejzy 阅读(277) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/dirge/p/5503289.html 关于无标号无/有根树计算 阅读全文
posted @ 2018-12-13 08:31 Jessiejzy 阅读(88) 评论(0) 推荐(0) 编辑