KMP模板
摘要:
1 var s,t:array[0..2000000]of char; 2 next:array[0..2000000]of longint; 3 cas,v,i,n,m,ans:longint; 4 5 procedure getnext; 6 var i,j:longint; 7 begin 8 i:=0; j:=1; 9 next[1]:=0; ... 阅读全文
posted @ 2016-11-17 21:05 myx12345 阅读(164) 评论(0) 推荐(0) 编辑