摘要: 题意:给出字符串长度n(#include #include #include #include using namespace std;#define D(x) #define MAX_LEN 20#define MAX_CHILD_NUM 4#define MAX_NODE_NUM 100005int st_num, len;int matrix_size;int node_cnt;struct node{ node *fail; node *next[MAX_CHILD_NUM]; int count; //how many words are matched when ... 阅读全文
posted @ 2014-04-07 16:26 undefined2024 阅读(1291) 评论(2) 推荐(0)