摘要: poj1741树上的点对 题目大意:给定一棵树,求树上距离不超过k的点对个数。 思路:点分治模板题。 #include<iostream> #include<cstdio> #include<algorithm> #include<cstring> #include<vector> #define 阅读全文
posted @ 2015-06-26 20:30 Rivendell 阅读(506) 评论(0) 推荐(0) 编辑