Open xehoth opened 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
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