
hdu
贱走偏锋
朝着梦想努力吧
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
2896
病毒侵袭Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4441 Accepted Submission(s): 1138Problem Description当太阳的光辉逐渐被月亮遮蔽,世界失去了光明原创 2012-05-07 21:13:10 · 1109 阅读 · 0 评论 -
自动机 Keywords Search 2222
主要考裸的AC自动机,这个东西之前看了,现在基本忘记了。。主要记住里面的fail指针的妙用#include#include#include#include#includeusing namespace std;struct node{node *next[26];int count;node *fail;node(){memset(next,NULL原创 2012-05-07 00:36:33 · 484 阅读 · 0 评论 -
3065 病毒侵袭持续中
#include#include#include#include#includeusing namespace std;struct node{node * next[26];node* fail;int count;node(){count = -1;fail = NULL;memset(next,NULL,sizeof(next));}原创 2012-05-08 10:59:23 · 441 阅读 · 0 评论