摘要: 水了。。。彻底水了。。。线段树都成水题了有木有!!!ACM路茫茫。。比赛题解:http://page.renren.com/601081183/note/861865911A题KMP求next数组即可View Code 1 #include<iostream> 2 #include<cstring> 3 using namespace std; 4 5 char a[50], b[100002], mapp[50]; 6 int pat[100002]; 7 8 void getNext(char s[], int next[]) 9 {10 int i, j, len 阅读全文
posted @ 2012-07-22 22:38 dgsrz 阅读(181) 评论(0) 推荐(0) 编辑