AC自动机模板题. 被卡内存了 死活A不掉.. AC自动机参考教程: http://www.cppblog.com/menjitianya/archive/2014/07/10/207604.html ; type arr=record next:..] of longint; fail,cnt:longint; end; var cas:longint; s:..maxn] of string; T:..] of arr; id:array['a'..'z'] of longint; rt,t…