摘要: AC自动机,用40^4 * 50 * 10的空间进行dp。最大的难点在于hash。hash一个数列f,数列中的每一位都有一个上限g,即f[i]#include #include #include #include using namespace std;#define D(x) const int ... 阅读全文
posted @ 2015-03-30 21:19 金海峰 阅读(151) 评论(0) 推荐(0) 编辑