树分治
sunyutian1998
这个作者很懒,什么都没留下…
展开
-
Tree POJ - 1741
http://poj.org/problem?id=1741 博客https://blog.csdn.net/qq_31759205/article/details/75579558 点分治模板题 #include <cstdio> #include <vector> #include <cstring> #include <algorithm&g...原创 2018-09-11 15:50:28 · 152 阅读 · 0 评论 -
Distance in Tree CodeForces - 161D
http://codeforces.com/problemset/problem/161/D 点分治模板题 查询多少点对之间距离恰好为k #include <bits/stdc++.h> using namespace std; #define ll long long const int N=0x3f3f3f3f; struct node { int v; i...原创 2018-09-13 15:09:47 · 152 阅读 · 0 评论