【題解】[牛客網NOIP賽前集訓營-提高組(第一場)]C.保護 LCA+線段樹動態開點+線段樹合併

題目鏈接 ___ #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int N=2e5+10; int n,m,hd[N],tot,dep[N],fa[N][20],ord[N],cnt,q; struct Edge{ int v,nx; }e[N<<1]; struct Segme
相關文章
相關標籤/搜索