会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
JeremyGuo
2015年12月22日
【AC自动机】[HDU3065]病毒侵袭持续中
摘要: 本来很简单的一道题目,和病毒侵袭差不多,只不过把bool ans 改成了int ans 然后统计一下次数就好了, 但是题目中居然没有出现多组数据的提示。。。。Wa了N次,居然因为没有多组数据。。。#include #include #include #include #includ...
阅读全文
posted @ 2015-12-22 14:06 JeremyGuo
阅读(136)
评论(0)
推荐(0)
【AC自动机】[HDU2896]病毒侵袭
摘要: 题目大意:多组询问的AC自动机 这里注意一下在HDU2222的基础上修改一下不要把FLAG清零,同时用一个数组记录一下那些出现过就行了#include #include #include #include #include using namespace std;#define r...
阅读全文
posted @ 2015-12-22 13:33 JeremyGuo
阅读(127)
评论(0)
推荐(0)
【AC自动机】[HDU2222]Keywords Search
摘要: 这题根本没什么好说的完全模板题目#include #include #include #include #include using namespace std;const int MAXN = 10000;struct State{ int fail, flag; i...
阅读全文
posted @ 2015-12-22 13:31 JeremyGuo
阅读(120)
评论(0)
推荐(0)
导航
博客园
首页
新随笔
联系
订阅
管理
公告