会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Your browser does not support the audio element.
_Desgard_Duan
Surprise!
博客园
首页
新随笔
联系
订阅
管理
2014年7月14日
线段树(build,insert,dfs操作)
摘要: 模板原型:解决零散数点在已知线段上的出现次数。思想是将线段用长线覆盖,将长线转化成线段树。用权值记录各个数点出现的次数,最后进行查询。代码解释见注释。 1 #include 2 using namespace std; 3 4 const int MAXN = 3e4 + 10; 5 int n...
阅读全文
posted @ 2014-07-14 12:31 Desgard_Duan
阅读(211)
评论(0)
推荐(0)
编辑
公告