摘要:
/*Date: 2012/10/27题目链接地址:http://acm.hdu.edu.cn/showproblem.php?pid=1247思路:把字典中的每个字符串拆成0->j 和 j->n 两个子串,再分别查找这两个子串 在不在字典中,若在则满足题意*/方法1:字典树#include<iostream>#include<string>using namespace std;#define maxn 50001string s[maxn];struct Trie{ int n; Trie *next[26]; Trie() { n = 0; ... 阅读全文
posted @ 2012-10-27 23:41
sorryhao
阅读(270)
评论(0)
推荐(0)

浙公网安备 33010602011771号