![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
RMQ维护/ST表/倍增
等我学会后缀自动机
侠影之谜
展开
-
CodeForces 208E Blood Cousins (启发式合并+倍增)
#include<bits/stdc++.h> using namespace std; #define debug puts("YES"); #define rep(x,y,z) for(int (x)=(y);(x)<(z);(x)++) #define ll long long #define lrt int l,int r,int rt #define lson l,m...原创 2020-03-20 00:12:15 · 151 阅读 · 0 评论 -
HDU 4123 Bob’s Race (树形DP+RMQ维护极值)*
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4123 #include<bits/stdc++.h> using namespace std; #define debug puts("YES"); #define rep(x,y,z) for(int (x)=(y);(x)<(z);(x)++) #define read(x...原创 2018-10-13 16:58:05 · 196 阅读 · 0 评论