摘要: 线段树的单点更新+区间求和 hdu1166敌兵布阵 Input 第一行一个整数T,表示有T组数据。 每组数据第一行一个正整数N(N #include #include #include using namespace std; const int maxn=50005; int num[maxn]; char str[30]; int n; typedef struct node{ int... 阅读全文
posted @ 2016-02-27 20:47 柳下_MBX 阅读(609) 评论(0) 推荐(0) 编辑