02 2022 档案
发表于 2022-02-17 22:08阅读:26评论:0推荐:1
摘要:主要是记录一下整体二分的板子 #include <cstdio> #include <algorithm> using namespace std; #define MAXN 100000 struct element {//修改 int loc; int time;//时间戳 int value;
阅读全文 »
发表于 2022-02-13 16:50阅读:119评论:5推荐:2
摘要:因为博主蒟蒻的原因, 在第一次写cdq实现斜率优化用了快一天的时间才把代码改对, 所以写一篇博客记录一下写法以及算法的基本实现思路。 #include <cstdio> #include <algorithm> using namespace std; #define INF 0x3f3f3f3f3
阅读全文 »