HDU1166树状数组裸题

1.题意就不在介绍,只放一张图和AC代码,因为这个东西的思想和线段树有异曲同工之妙,所以不是太懂的只需要看一下线段树是怎么实现的。   #include"stdafx.h" #include <iostream> #include <algorithm> #include<string> using namespace std; const int maxx = 50010; int c[maxx
相关文章
相关标签/搜索