摘要: 1 #include 2 using namespace std; 3 #define M(a, b) memset(a, b, sizeof(a)); 4 const int maxn = 1000 + 10; 5 6 struct AhoCorasickAutomata { 7 int ch[maxn][26], val[maxn], last[maxn], f[ma... 阅读全文
posted @ 2017-02-20 20:41 Robin! 阅读(499) 评论(0) 推荐(0) 编辑
摘要: Problem Description A lot of battleships of evil are arranged in a line before the battle. Our commander decides to use our secret weapon to eliminate 阅读全文
posted @ 2017-02-20 17:36 Robin! 阅读(199) 评论(0) 推荐(0) 编辑