#include <iostream>
#include <algorithm>
#include <cstring>
using namespace std ;
const int N = ;
struct node{
int val,pos ;
}tmp[N];
int a[N] ;//离散化后的原始数...
模板题,树状数组加上离散化求逆序对。
1 #include<bits/stdc++.h>
2 using namespace std;
3 typedef long long LL;
4 const int N=5e5+10;
5 int n,a[N],b[N],c[N];
6 LL ans;
7
8 int lowbit(in...
[Codeforces]817F. MEX Queries
You are given a set of integer numbers, initially it is empty. You should perform n queries. There are three different types of queries: 1 l r — Add al...