梦,才是最真的现实

导航

2012年8月22日 #

hdu

摘要: 模版题。。。。注意只统计总类#include#include#include#include#include#define val 10005using namespace std;struct Dictree{ int cnt; int no; Dictree *next[100],*fail;}... 阅读全文

posted @ 2012-08-22 09:54 梦,才是最真的现实 阅读(140) 评论(0) 推荐(0) 编辑

HDU 2222 AC自动机模版

摘要: 弄个模版也能花一天。。。。太佩服我自己了。。。。root的初始化都没弄好。。#include#include#include#include#define val 10005using namespace std;struct Dictree{ int cnt; Dictree *fail,*nex... 阅读全文

posted @ 2012-08-22 01:10 梦,才是最真的现实 阅读(131) 评论(0) 推荐(0) 编辑