摘要: https://www.luogu.com.cn/problem/P1438 点击查看代码 #include<bits/stdc++.h> using namespace std; #define LL long long #define ls u<<1 #define rs u<<1|1 #def 阅读全文
posted @ 2025-08-30 15:39 Lucian2007 阅读(5) 评论(0) 推荐(0)
摘要: P3919 点击查看代码 #include<bits/stdc++.h> #define N 1000005 #define mid ((l+r)>>1) using namespace std; int n,m,a[N]; int root[N],tot;//根节点,节点个数 int ls[N*2 阅读全文
posted @ 2025-08-30 12:06 Lucian2007 阅读(6) 评论(0) 推荐(0)