摘要:
复习一遍 include include include define N 150000 define For(i,x,y) for(int i=x;i 1; build(lson(p),L,MID); build(rson(p),MID+1,R); } void ins(int p,int x,i 阅读全文
posted @ 2017-12-30 21:56
Grary
阅读(120)
评论(0)
推荐(0)
摘要:
这不是一道LCT的题目 只是一道LCA+Kruskal的题目 只是货车运输的改进版都算不上 诶,好像有点问题 include include include include define N 10001 define inf 0x7fffffff using namespace std; bool 阅读全文
posted @ 2017-12-30 20:33
Grary
阅读(120)
评论(0)
推荐(0)
摘要:
``` include define N 300005 using namespace std; int n,m,val[N]; struct Link_Cut_Tree{ int top,c[N][2],fa[N],xr[N],q[N],rev[N]; inline void pushup(int 阅读全文
posted @ 2017-12-30 20:21
Grary
阅读(134)
评论(0)
推荐(0)
摘要:
``` include include define N 200005 using namespace std; inline int read() { int x=0,f=1;char ch=getchar(); while(ch'9'){if(ch==' ')f= 1;ch=getchar(); 阅读全文
posted @ 2017-12-30 19:15
Grary
阅读(115)
评论(0)
推荐(0)
摘要:
``` include include include define N 200005 using namespace std; inline int read() { int x=0,f=1;char ch=getchar(); while(ch'9'){if(ch==' ')f= 1;ch=ge 阅读全文
posted @ 2017-12-30 19:14
Grary
阅读(187)
评论(0)
推荐(0)

浙公网安备 33010602011771号