摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1754线段树节点更新练习第四棵线段树……TUT……初始化的时候忘了把cnt设为0, RE了几次……=3= 1 #include <cstdio> 2 #include <cstring> 3 4 const int MAXN = 200000 + 10; 5 6 struct Node 7 { 8 int r, l; 9 int max;10 Node *l_child, *r_child;11 };12 13 Node Tree[MAXN + MAXN];14 int .. 阅读全文
posted @ 2012-10-27 14:25
冰鸮
阅读(157)
评论(0)
推荐(0)
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1166线段树节点更新练习第三棵线段树……TUT…… 1 #include <cstdio> 2 #include <cstring> 3 4 const int MAXN = 50000 + 10; 5 6 struct Node 7 { 8 int l, r; 9 int sum;10 Node *l_child, *r_child;11 };12 13 int N;14 int cnt;15 Node Tree[ MAXN + MAXN ];16 17 void Bu.. 阅读全文
posted @ 2012-10-27 13:20
冰鸮
阅读(166)
评论(0)
推荐(0)

浙公网安备 33010602011771号