
AC自动机
xiaoyu1_1
学生
展开
-
UVA 1449 Dominating Patterns
Output For each of the input cases, output the appearing times of the dominating pattern(s). If there are more than one dominating pattern, output them in separate lines; and keep their input orde转载 2013-09-29 17:46:10 · 709 阅读 · 0 评论 -
hdu 2222 Keywords Search----AC自动机
Print how many keywords are contained in the description. 题意:求多少个字串 在 母串中出现过 例: Sample Input 1 5 she he say shr her yasherhs Sample Output 3 主要用了刘汝佳模板。。改了改,用的是原创 2013-09-29 17:39:50 · 606 阅读 · 0 评论