博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年7月15日

摘要: 题目:http://livearchive.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2658ac自动机。先把单词按照题意排序,把询问串建成trie树,然后按照单词顺序进行查询,注意好结果保存,询问串可能会有重复。View Code #include <cstdio>#include <cstring>#include <string>#include <vector>#include <io 阅读全文

posted @ 2012-07-15 12:12 紫华弦筝 阅读(156) 评论(0) 推荐(0) 编辑