摘要: 学习Trie树中,所以上网搜一下Trie树的题,找到这个,人家写着是简单dp,那我就想着能学习到什么Trie树上的dp,但最后发现根本好像跟Trie树没有什么联系嘛...题意就是给你很多个字符串(长度#include#include#include#include#define maxn 10000using namespace std;struct StrNode{ char sd[25]; char s[25]; int id; bool operator sd)next[s[i]-'a']!=NULL){ p=p->next[s[i]-'a']; } 阅读全文
posted @ 2013-12-21 00:11 chanme 阅读(228) 评论(0) 推荐(0) 编辑