会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
LOSER_琪
以梦为马,不负韶华。
博客园
首页
新随笔
联系
订阅
管理
2018年9月19日
马拉车算法
摘要: ``` c++ #include #define maxn 100005 using namespace std; char str[maxn],s[maxni) r[i]=min(max_r-i,r[2*pos-i]); else r[i]=0; while(i+r[i]+1=0&&s[i+r[i]+1]==s[...
阅读全文
posted @ 2018-09-19 19:05 LOSER_琪
阅读(140)
评论(0)
推荐(0)
2018年9月12日
扩展KMP
摘要: ``` c++ include define maxn 100005 using namespace std; int next[maxn],extend[maxn]; void getnext(char str) { int pos=0; int l=strlen(str); next[0]=l;
阅读全文
posted @ 2018-09-12 10:47 LOSER_琪
阅读(117)
评论(0)
推荐(0)
HDU 1166 敌兵布阵
摘要: 题目链接: "HDU 1166 敌兵布阵" Problem Description C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的
阅读全文
posted @ 2018-09-12 10:04 LOSER_琪
阅读(93)
评论(0)
推荐(0)
公告