線段樹 && 樹狀數組

啊哈!第一篇文章~ios 屠龍寶刀點擊就送web 樹狀數組 ↓數組 #include<iostream> #include<cstdio> using namespace std; const int MAXN = 100010; int n, num[MAXN], c[MAXN]; void add(int loc, int value) { for(int i = loc; i <=
相關文章
相關標籤/搜索