摘要: 题目链接写的太渣了,依旧RE了几次。。。 1 #include <stdio.h> 2 #include <string.h> 3 #include <stdlib.h> 4 char str[500001][101]; 5 char word[500001]; 6 char ch[5001]; 7 struct node 8 { 9 int flag; 10 struct node *next[26]; 11 }; 12 int num = 1; 13 struct node *build() 14 { 15 int i; 16 struct... 阅读全文
posted @ 2012-08-13 20:36 Naix_x 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 题目链接我那个纠结啊。。。。看了大半天终于,把tire树敲出来,数组开小RE了N次,还死活以为是指针越界别的什么的。。。没看开始字符数组开小了。。无语啊。 1 #include <stdio.h> 2 #include <string.h> 3 #include <stdlib.h> 4 char word[50001][101]; 5 struct node 6 { 7 int flag; 8 struct node *next[26]; 9 };10 struct node *build()11 {12 int i;13 struct node *p;1 阅读全文
posted @ 2012-08-13 16:56 Naix_x 阅读(232) 评论(0) 推荐(0) 编辑