摘要:
//https://www.luogu.com.cn/problem/P11967 #include <bits/stdc++.h> using namespace std; const int N=1e6+10,M=N*2; int e[M],ne[M],h[N],idx; int depth[N 阅读全文
摘要:
//https://www.luogu.com.cn/problem/P3128 #include <bits/stdc++.h> using namespace std; const int N=5e4+10,M=N*2; int e[M],ne[M],h[N],idx; int depth[N] 阅读全文
摘要:
//https://www.luogu.com.cn/problem/P3398 #include <bits/stdc++.h> using namespace std; const int N=1e5+10,M=N*2; int e[M],ne[M],h[N],idx; int depth[N] 阅读全文
摘要:
//https://www.acwing.com/problem/content/description/354/ #include <bits/stdc++.h> using namespace std; const int N=1e5+10,M=2*N; int e[M],ne[M],h[N], 阅读全文
摘要:
//https://www.luogu.com.cn/problem/P3379 #include <bits/stdc++.h> using namespace std; const int N=5e5+10,Q=5e5+10,M=2*N; typedef pair<int,int> pii; i 阅读全文
摘要:
//https://www.luogu.com.cn/problem/P3379 #include <bits/stdc++.h> using namespace std; const int N=5e5+10,M=N*2; int e[M],ne[M],h[N],idx; int depth[N] 阅读全文
摘要:
//https://www.acwing.com/problem/content/1173/ //http://ybt.ssoier.cn:8088/problem_show.php?pid=1556 #include <bits/stdc++.h> using namespace std; con 阅读全文