摘要: 题意思路简单,直接贴代码/* * poj2001/win.c * Created on: 2011-8-18 * Author : ben */#include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>#define MAXN 1005#define MAXLEN 25int N;char strs[MAXN][MAXLEN];typedef struct Trie { int num; struct Trie * br[26];} Trie;Trie* ne 阅读全文
posted @ 2011-08-18 17:22 moonbay 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 在网吧做题,赶上杭电OJ不能交题,先把代码存在博客里,回学校提交,有错再改。/* * hdu1251/win.c * Created on: 2011-8-18 * Author : ben */#include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>typedef struct Trie { int num; struct Trie * br[26];} Trie;Trie* newTrieNode() { int i; Trie* node = (Tri 阅读全文
posted @ 2011-08-18 16:00 moonbay 阅读(170) 评论(0) 推荐(0) 编辑