xehoth / xehoth-blog-comment

0 stars 0 forks source link

树上操作总结 | xehoth #156

Open xehoth opened 7 years ago

xehoth commented 7 years ago

https://blog.xehoth.cc/TreeOperation/

树上操作学习总结储存用邻接表储存。 12345678910const int MAXN = 10010;struct Node { int v, w; Node(int v, int w) : v(v), w(w) {}};vector<Node> edge[MAXN];inline void addEdge(int u, int v