线段树
摘要:
单点更新hdu1754 I Hate ItView Code #include <iostream>#include <cstdio>#include <cmath>using namespace std;#define lson l,m,root<<1#define rson m+1,r,root<<1|1const int MAX = 250000;int arr[MAX<<2];int n;void pushup(int root){ arr[root] = max(arr[root<<1],arr[ro 阅读全文
posted @ 2013-04-05 15:55 shijianupc 阅读(104) 评论(0) 推荐(0)
浙公网安备 33010602011771号