Gym - 102040F - Path Intersection (树链剖分)
类似 hdu3966
#include <bits/stdc++.h>
using namespace std;
const int maxn = 10000+10;
struct Edge
{
int to,next;
} edge[maxn*2];
int head[maxn],tot;
int top[maxn];
int fa[maxn];
int deep[max...
原创
2019-08-12 18:55:00 ·
411 阅读 ·
0 评论