
后缀数组
文章平均质量分 77
ch2010091
这个作者很懒,什么都没留下…
展开
-
POJ 2406
就是问你一个字符串是被某个子串重复多次(这里要求是最多)形成的.求这个次数.KMP是可以的.暴力?貌似也可以.后缀数组?DA 的模板是TLE的.DC3?木有写啊.这是DA TLE的模板.就算是TLE的写法也纠结了好久.代码里面写了怎么统计了..#include #include #include #include #include const int L=1000001; const d原创 2012-07-19 10:38:29 · 624 阅读 · 0 评论 -
HDU 3518
Q其实这题比较简单啦。但是对我来说,题目做的还不够多.后缀数组又不是只贴个代码就能完事的...#include #include #include #include #include const int L=10001; const double eps=1e-10; using namespace std; char s[L]; int wa[L],wb[L],wv[L],wc[L];原创 2012-07-19 10:33:51 · 469 阅读 · 0 评论