摘要: "题目链接" cpp include include define MAXN 1005 using namespace std; int link[MAXN],vis[MAXN],head[MAXN]; struct edge{ int v,next; }G[MAXN 阅读全文
posted @ 2018-03-08 23:35 Neworld1111 阅读(132) 评论(0) 推荐(0) 编辑
摘要: "题目链接" LCA裸题 cpp include define MAXN 1005 using namespace std; int N,Q,tot=0; struct size{ int v,w,next; }G[MAXN=0; i) if(d[anc[i][u]] =d[v])u=anc[i][ 阅读全文
posted @ 2018-03-08 23:12 Neworld1111 阅读(141) 评论(0) 推荐(0) 编辑