![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
动态规划之思维DP
C++
等我学会后缀自动机
侠影之谜
展开
-
Codeforces Round #646 (Div. 2) F Rotating Substrings(思维DP)
#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,mid,rt<<1 #define rson mid+1,r,rt<<1|1 #defin.原创 2020-06-14 15:59:40 · 247 阅读 · 0 评论 -
CodeForces 315D Sereja and Periods (思维DP)
#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-04-25 07:59:31 · 179 阅读 · 0 评论