2014年10月16日

hdu5029 树链剖分(技巧)

摘要: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 vectorcol[100005]; 7 int cnt,now; 8 int maxv[400010],ans[100005],maxx[40... 阅读全文

posted @ 2014-10-16 21:19 xiao_xin 阅读(161) 评论(0) 推荐(0) 编辑

just邻接表

摘要: 1 void add(int x,int y)2 {3 next[++now]=head[x];4 head[x]=now;5 point[now]=y;6 } 阅读全文

posted @ 2014-10-16 14:49 xiao_xin 阅读(100) 评论(0) 推荐(0) 编辑

导航