摘要: //https://www.luogu.com.cn/problem/P2680 #include <bits/stdc++.h> #pragma G++ optimize(3) #pragma G++ target("avx") #pragma G++ optimize("Ofast") #pra 阅读全文
posted @ 2025-05-10 12:11 九三青梧 阅读(8) 评论(0) 推荐(0)
摘要: //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 阅读全文
posted @ 2025-05-10 10:42 九三青梧 阅读(11) 评论(0) 推荐(0)
摘要: //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] 阅读全文
posted @ 2025-05-10 10:17 九三青梧 阅读(8) 评论(0) 推荐(0)