可持久化线段树模板
维护可持久化数组
题目链接:https://www.luogu.com.cn/problem/P3919
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 1000005;
int n,m;
int a[N];
int val[N*20], ls[N * 20], rs[N * 20], cnt, t[N * 20];
void build(int &rt, int l,
原创
2021-08-15 16:30:59 ·
181 阅读 ·
0 评论