会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
草稿箱建设中
退而结网
博客园
首页
新随笔
联系
订阅
管理
2020年9月28日
[牛客]Magnificent Tree (CDQ分治)
摘要: 原题 思路 cdq分治,三维偏序问题(x, y, id)。第一维用sort排,第二维归并排序同时根据第三维树状数组统计贡献,手动交换会T,先sort再统计贡献,node数组要开4倍。 #include <algorithm> #include <cmath> #include <cstdio> #i
阅读全文
posted @ 2020-09-28 09:22 kurum!
阅读(136)
评论(0)
推荐(0)
编辑
公告