HDU1166樹狀數組裸題

1.題意就不在介紹,只放一張圖和AC代碼,因爲這個東西的思想和線段樹有異曲同工之妙,所以不是太懂的只需要看一下線段樹是怎麼實現的。   #include"stdafx.h" #include <iostream> #include <algorithm> #include<string> using namespace std; const int maxx = 50010; int c[maxx
相關文章
相關標籤/搜索