摘要: 很明显的字典树查询了,主要是对输入做处理,多次WA后才发现忘了标志单词的前缀的问题了,例如存入hello,后面查找hell是不能查到的,忘了对这个的处理,看到得多练习了。View Code 1 //Accepted 1075 281MS 71020K 1500 B C++ 2 #include <iostream> 3 #include <cstring> 4 #include <cstdio> 5 #include <string> 6 #define M 26 7 using namespace std; 8 int ii; 9 struc. 阅读全文
posted @ 2012-09-19 22:16 Wheat″ 阅读(204) 评论(0) 推荐(0)