02 2021 档案

摘要:题链 此题即Picks loves segment tree增加询问历史最值 #include <bits/stdc++.h> #include <iostream> #include <algorithm> #include <stdio.h> #include <string.h> #inclu 阅读全文
posted @ 2021-02-23 20:58 棉被sunlie 阅读(179) 评论(0) 推荐(0)
摘要:题链 关于修改: min修改:直接递归到节点(maxse < val < maxf),转化为对节点最大值的加减; add修改:划分为对 节点最大值 和 节点其余值 的加减; lazy标记 最大值的加减lamaxf 和 其余值的加减laoth 重点在于将 min修改 和 add修改 变为同一修改 #i 阅读全文
posted @ 2021-02-21 14:51 棉被sunlie 阅读(176) 评论(0) 推荐(0)
摘要:题链 关于修改:直接递归到节点(maxse < val < maxf),转化为只关于该节点最大值的加减; #include <bits/stdc++.h> #include <iostream> #include <algorithm> #include <stdio.h> #include <st 阅读全文
posted @ 2021-02-21 13:21 棉被sunlie 阅读(72) 评论(0) 推荐(0)
摘要:题链 #include <bits/stdc++.h> #include <iostream> #include <algorithm> #include <stdio.h> #include <string.h> #include <stdlib.h> using namespace std; # 阅读全文
posted @ 2021-02-16 23:46 棉被sunlie 阅读(47) 评论(0) 推荐(0)
摘要:题链 #include <bits/stdc++.h> #include <iostream> #include <algorithm> #include <stdio.h> #include <string.h> #include <stdlib.h> using namespace std; # 阅读全文
posted @ 2021-02-16 23:45 棉被sunlie 阅读(22) 评论(0) 推荐(0)