bzoj1729:[Usaco2005 dec]Cow Patterns 牛的模式匹配(kmp+思维)
Problem有一个nn个数的数列AA,其数字范围为11~k(k#include#includeusingnamespacestd;#defineN100010#defineinf0x3f3f3f3fintn,m,k,ans=0,nxt[N],f[N],s[N],t[N],a[N],b[N],c[N],maxx[N],maxy[N];inlinevoidKMP(intstep,intx){for(