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
相關文章
相關標籤/搜索