摘要: 题意 给出n(n 2 #include 3 #include 4 #include 5 using namespace std; 6 const int N = 1010; 7 const int inf = ~0u>>2; 8 int hash[129]; 9 struct node{ 10 node *ch[4],*fail; 11 int mask; 12 void clear(){ 13 for(int i = 0;i clear(); 25 return p; 26 } 27 void ini... 阅读全文
posted @ 2013-08-12 22:20 silver__bullet 阅读(358) 评论(0) 推荐(0) 编辑