摘要:
http://poj.org/problem?id=3087一道模拟题折腾了好久View Code 1 #include <iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<algorithm> 5 #include<map> 6 using namespace std; 7 map<string,int>ff; 8 int main() 9 {10 int i,j,k,n;11 char s1[110],s2[110],s[300],ss[300];1 阅读全文
posted @ 2013-01-20 15:47
_雨
阅读(131)
评论(0)
推荐(0)
摘要:
http://poj.org/problem?id=2418 trie树,有非空格、字母的字符View Code 1 #include <iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<stdlib.h> 5 #include<algorithm> 6 using namespace std; 7 typedef struct node 8 { 9 int num;10 struct node *next[130];11 node()12 {13 memset(n 阅读全文
posted @ 2013-01-20 15:45
_雨
阅读(184)
评论(0)
推荐(0)