摘要: 第一个离散化线段树先把区间写成左开右闭的形式,然后sort() unique() lower_bound() 离散化最后按普通线段树更新即可代码:#include <iostream>#include <stdio.h>#include <string.h>#include <algorithm>using namespace std;#define for if(0); else forcons... 阅读全文
posted @ 2012-08-15 11:56 编程菜菜 阅读(985) 评论(0) 推荐(0) 编辑