LeeBlog

导航

2011年3月15日 #

HDU 1671 Phone List

摘要: 这题是字典树的以简单题但我开始一直不能水过,后来才发现rt用的不是自定义,再循环使用时没有初始化,后来将结构体自定义,果断水过,表示以后所有的结构体都用自定义#include<stdio.h>#include<stdlib.h>#include<string.h>const int max = 10;typedef struct T{ T *ch[max]; int f; }Trie;int flag = 1; char in[50];void init( T *t ){ t -> f = 0; for( int i = 0; i < max; 阅读全文

posted @ 2011-03-15 22:22 LeeBlog 阅读(183) 评论(0) 推荐(0) 编辑