![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
字符串
文章平均质量分 84
AC_XXZ
努力了不一定会成功,但不努力肯定会失败
展开
-
Codeforces Round #279 (Div. 2)
C. Hacking Cyphertime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarpus participates in a competition f原创 2014-11-27 21:10:55 · 1075 阅读 · 0 评论 -
KMP模板
int s[maxn];//文本串int p[10007];//匹配串int next[10007];//匹配串的next数组//优化过后的next 数组求法void GetNextval(int n)//n代表p数组的长度{ int pLen = n; next[0] = -1; int k = -1; int j = 0; while (j原创 2015-01-04 11:04:22 · 1205 阅读 · 0 评论 -
HDU3336(KMP)
#include #include #include using namespace std;const int maxn = 1e6+7;int s[maxn];//文本串char p[2000010];//匹配串int next[2000010];//匹配串的next数组void GetNext(int n){ int pLen = n; next[0]原创 2015-01-04 16:54:59 · 1029 阅读 · 0 评论 -
01串
1086: 01串Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 6 Solved: 2[Submit][Status][Web Board]Description01串是指仅由0和1组成的字符串。一个完美的01串,是指任意相邻字符都不相等的01串。也就是说,完美的01串应该拥有这样的形式:“010101...”或原创 2014-09-11 15:43:06 · 3882 阅读 · 0 评论 -
强大的位运算
1090: 水晶链Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 2 Solved: 2[Submit][Status][Web Board]Description你现在有一条水晶链,上面镶着N个珠子,每个珠子可能是红色(r),绿色(g)或者蓝色(b)。Indira有一种神奇的魔法,就是可以将相邻两个不同颜色的珠子原创 2014-09-11 16:03:20 · 860 阅读 · 0 评论