kuangbin專題十六 HDU1711 KMP模板題

題意: 給出兩個序列的數字,要你找到第一個序列中找到第二個序列並輸出位置。 題解: KMP模板題。web #include<stdio.h> #include<string.h> #include<algorithm> using namespace std; const int MAXN=1000000+7; int s[MAXN]; int p[MAXN]; int Next[MAXN]; i
相關文章
相關標籤/搜索