![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
DFA
吴俊达9812
这个作者很懒,什么都没留下…
展开
-
杭电 2222
endd清零很重要,因为每次访问过后,有可能以后还会访问,不清零的话会导致重复相加。#include <iostream>#include<cstring>#include<cstdio>#include<queue>using namespace std;const int maxm = 1000005;const int m...原创 2018-08-29 21:44:05 · 217 阅读 · 0 评论 -
HDU 3065(DFA 水题)
#include<cstdio>#include<queue>#include<cstring>using namespace std;const int maxc = 2000000 + 10;const int maxn = 50009;struct AC{ long long cnt[maxn]; int f[maxn],las...原创 2018-09-03 21:18:18 · 150 阅读 · 0 评论