2011年3月22日

摘要: 题目:http://acm.hdu.edu.cn/showproblem.php?pid=1894先排序,再进行判断是否是前缀,可以明显提高效率;AC代码:#include<stdio.h>#include<string.h>#include<stdlib.h>typedef struct node{ char s[33];}node;node w[50005];int cmp(const void *a,const void *b){ struct node *c=(struct node *)a; struct node *d=(struct node 阅读全文
posted @ 2011-03-22 19:01 江南烟雨hust 阅读(178) 评论(0) 推荐(0)

导航