摘要:
模板: #include<iostream> #include<stdio.h> #include<string.h> using namespace std; #define MAXN 1024 int fa[MAXN]; int set_find(int d){ if(fa[d]<0)retur 阅读全文
摘要:
KMP: Problem A.Number Sequence d.求子串首次出现在主串中的位置 s. c. #include<iostream> #include<stdio.h> #include<string.h> using namespace std; #define MAXN 10005/ 阅读全文