摘要: AC自动机+状态压缩DP注意:相同的串可能出现多次,如果匹配成功则将各次权值加和。#include #include #include using namespace std;#define D(x) const int MAX_N = 15;const int MAX_LEN = 105;cons... 阅读全文
posted @ 2015-03-27 21:19 undefined2024 阅读(115) 评论(0) 推荐(0)