树链剖分
everlasting__
'-'
展开
-
树链剖分 模板
bzoj 1036 #include #include #include #include #include #define inf 999999999 using namespace std; struct node{ int Max,sum; int l,r; }tree[120020]; int n; int w[30030],son[30030],totree[30030],原创 2017-10-03 22:03:24 · 258 阅读 · 0 评论 -
bzoj 4034: [HAOI2015]树上操作 树链剖分
新博客链接:https://www.everlasting.wang/archives/210原创 2017-12-24 20:42:57 · 273 阅读 · 0 评论