摘要: 洛谷P3810 陌上花开 "传送门" 题解: CDQ分治模板题。 一维排序,二维归并,三维树状数组。 核心思想是分治,即计算左边区间对右边区间的影响。 代码如下: cpp include using namespace std; typedef long long ll; const int N = 阅读全文
posted @ 2019-08-11 17:20 heyuhhh 阅读(189) 评论(0) 推荐(0) 编辑
摘要: AtCoder Beginner Contest 136 "题目链接" A + x 直接取$max$即可。 Code cpp include using namespace std; typedef long long ll; const int N = 2e5 + 5; int main() { 阅读全文
posted @ 2019-08-11 15:12 heyuhhh 阅读(345) 评论(0) 推荐(0) 编辑