摘要: 线段树合并,手打一遍过。 非常嗨皮,记录一下。 使用并查集,合并+查询。 代码如下: #include<bits/stdc++.h> using namespace std; const int maxn=1e5+10; int n,m,q,a[maxn],rev[maxn],f[maxn]; in 阅读全文
posted @ 2020-06-16 21:58 syzf2222 阅读(138) 评论(0) 推荐(0) 编辑