摘要: 额,跟hdu的1075很像,不过比那题简单多了,就是读入时有点麻烦,用到了一个函数具体看代码吧,这题没什么,不过我的内存开了太多了,不解……#include<stdio.h>#include<string.h>#include<stdlib.h>typedef struct node{ node *next[26]; int v; char str[15];}*tree,t;tree root;void insert(char *s,char *s1){ tree p=root,newnode; for(;*s1!='\0';s1++) { 阅读全文
posted @ 2011-05-14 12:56 枕边梦 阅读(233) 评论(0) 推荐(0) 编辑