线段树
yo_haha
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
hdu 1166 敌兵布阵
http://acm.hdu.edu.cn/showproblem.php?pid=1166 线段树模板题#include <cstdio> using namespace std; #define lson l,m,rt<<1 #define rson m+1,r,rt<<1|1 const int maxx=55555; int sum[maxx<<2]; void PushUp(int rt原创 2015-05-31 22:50:38 · 282 阅读 · 0 评论 -
hdu 1754 I hate it
http://acm.hdu.edu.cn/showproblem.php?pid=1754#include <cstdio> using namespace std; const int maxx=200000; int sum[maxx<<2]; #define lson l,m,rt<<1 #define rson m+1,r,rt<<1|1 int MAX(int a, int b) {原创 2015-05-31 23:53:23 · 251 阅读 · 0 评论 -
hdu 1394 线段树求逆序数
http://acm.hdu.edu.cn/showproblem.php?pid=1394#include <cstdio> using namespace std; const int maxx=5100; int sum[maxx<<2]; #define lson l,m,rt<<1 #define rson m+1,r,rt<<1|1 void pushup(int rt) { s原创 2015-06-01 08:40:00 · 249 阅读 · 0 评论
分享