shyyhs
shyyhs
全部文章
题解
DP专题(52)
图论(4)
多校补题(2)
数据结构(27)
数论(4)
日记(14)
未归档(38)
归档
标签
去牛客网
登录
/
注册
shyyhs的博客
全部文章
/ 题解
(共2篇)
[HAOI2015]树上操作
来自专栏
思路 比蓝题的树剖模板题少了一个函数... 不会树剖的可以看看洛谷日报以及oiwike. 代码 我复习了一下...code大概有点长... #include <bits/stdc++.h> using namespace std; typedef long long ll; const ...
树链剖分
2021-03-29
1
951
New Year Tree
来自专栏
回去再调. #include <bits/stdc++.h> using namespace std; typedef long long ll; const int N=4e5+5; ll col[N]; vector<int>g[N]; int now[N],last[N...
树链剖分
2021-01-15
2
704