HDU1166敌兵布阵 分块解法,分块练习
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=1166
线段树,树状数组的模板题。用来入门分块。
#include
using namespace std;
const int N = 5e4+10;
int block;
int n;
int arr[N], sum[N];
void update(int pos, int va
原创
2017-07-02 20:51:05 ·
308 阅读 ·
0 评论