可以练练代码能力写了个字典树映射,字典树节点中还用一个vector保存了拥有相同构成的字符串,输出时排序一下输出就好了细节处理需要细心View Code #include<cstdio>#include<vector>#include<cstring>#include<iostream>#include<string>#include<map>#include<algorithm>using namespace std;char str[30010][20];class trie{public : int nu Read More
posted @ 2012-03-31 12:57 Because Of You Views(672) Comments(0) Diggs(0) Edit