HDU 2222 Keywords Search(AC自…
来源:互联网 发布:汇川plc编程软件安装 编辑:程序博客网 时间:2024/06/05 10:38
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2222
分析见大牛:http://www.cppblog.com/mythit/archive/2009/07/30/80633.html
模版见大神:http://archive.cnblogs.com/a/2206679/
这个模版貌似废话比较多,其实可以更简略的~ ~ ~
附上自己的代码:
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define N 500008
typedefstructpoint{
}*Tree,Node;
Tree root;
charstr[1000008];
Tree Q[500008];
Tree NEW()
{
}
voidBuild(char ss[])
{
}
voidAC_Automation()
{