摘要: 题目:http://codeforces.com/contest/600/problem/E 看博客:https://blog.csdn.net/blue_kid/article/details/82192641 https://blog.csdn.net/clove_unique/article/ 阅读全文
posted @ 2018-09-21 22:06 Zinn 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 题目:http://codeforces.com/problemset/problem/1042/A 代码如下: 阅读全文
posted @ 2018-09-21 15:42 Zinn 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 题目:https://www.luogu.org/problemnew/show/P1314 显然就是二分那个标准; 当然不能每个区间从头到尾算答案,所以要先算出每个位置被算了几次; 不知为何自己第一想法是把符合要求的位置插入树状数组再遍历区间得到该区间内的个数然后在其左右端点差分最后遍历位置时一边 阅读全文
posted @ 2018-09-21 15:29 Zinn 阅读(147) 评论(0) 推荐(0) 编辑