摘要:
题目链接 "loj 2009. 「SCOI2015」小凸玩密室" 题解 树高不会很高 include using namespace std; inline int read() { int x = 0,f = 1; char c = getchar(); while(c '9')c = getch 阅读全文
摘要:
题目链接 "loj 2054. 「TJOI / HEOI2016」树" 题解 每次标记覆盖整棵字数,子树维护对于标记深度取max dfs序+线段树维护一下 代码 c++ include include inline int read() { int x = 0,f = 1; char c = get 阅读全文
摘要:
题目链接 "loj 2038. 「SHOI2015」超能粒子炮・改" 题解 卢卡斯定理 之后对于%p分类 剩下的是个子问题递归 n,k小于p的S可以预处理,C可以卢卡斯算 代码 c++ include include inline long long read() { long long x = 0 阅读全文
摘要:
A 单调栈/凸壳 "题目链接" 题解 对于二次函数提出一个x 对于剩下的直线维护一个 我们需要求出最大值上轮廓 单调栈求上凸壳就好了 code c++ include include inline int read() { int x = 0,f = 1; char c = getchar(); w 阅读全文
摘要:
题目链接 "loj 2129. 「NOI2015」程序自动分析" 题解 额... 考你会不会~~离散化~~优化常数 代码 c++ include include include include inline int read() { int x = 0,f = 1; char c = getchar 阅读全文