摘要:
题源:https://vjudge.net/problem/UVA-11475 很标准的回文串问题(为什么总是在一些奇奇怪怪的地方写错。。) #include <iostream> #include <stdio.h> #include <cstring> #define LCOAL #define 阅读全文
摘要:
题源:https://www.luogu.com.cn/problem/P3796 debug了一下午发现代码又抄错了,数组大小也开错了,数据范围搞混了。。 #include <iostream> #include <stdio.h> #include <cstring> #include <que 阅读全文
摘要:
oiwiki上讲的挺详细的,但是感觉跟国内不太一样?代码好像也更简短? void pre_ekmp(char s[], int ekmp[], int n) { ekmp[0] = n; //国内是这样用的,oiwiki上好像是定义为0 for (int i = 1, l = 0, r = 0; i 阅读全文