P1972 [SDOI2009]HH的项链(洛谷)

P1972 [SDOI2009]HH的项链 离线树状数组 #include<stdio.h> #include<algorithm> using namespace std; const int N=1e6+500; int n,m; int a[N],pos[N],c[N],ans[N]; struct node { int l,r,id; friend bool operator < (c
相关文章
相关标签/搜索