
字符串匹配
guojiaqi007
这个作者很懒,什么都没留下…
展开
-
九度 oj 题目1149:子串计算
http://ac.jobdu.com/problem.php?pid=1149 #include #include #include typedef struct item{ char s[102]; int times; bool friend operator < (struct item a, struct item b){原创 2017-01-21 18:59:34 · 236 阅读 · 0 评论 -
九度 oj 题目1555:重复子串
http://ac.jobdu.com/problem.php?pid=1555 这道题觉得还可以再优化,暂时先水过了。 #include #include #include using namespace std; #define rep(i,j,k) for(int i=j;i<=k;i++) string s; int cal(string s) { set uniq;原创 2017-03-08 14:39:46 · 372 阅读 · 0 评论