diff --git a/.ACM-Templates/KMP.cpp b/.ACM-Templates/KMP.cpp new file mode 100644 index 0000000..65d236e --- /dev/null +++ b/.ACM-Templates/KMP.cpp @@ -0,0 +1,35 @@ +#include +#include +#include +using namespace std; + +void getfill(string s,int* f) +{ + //memset(f,0,sizeof(f)); //根据其前一个字母得到 + for(size_t i=1;i