设为首页 加入收藏

TOP

HDU 1800 Flying to the Mars(字典树)(二)
2015-11-21 01:02:38 来源: 作者: 【 】 浏览:7
Tags:HDU 1800 Flying the Mars 字典
mp->next[i]); delete(temp); } int main() { int i,j; char ch[35]; int n; while(~scanf("%d",&n)) { root=(stud *)malloc(sizeof(stud)); for(i=0;i next[i]=NULL; root->num=0; ans=0; while(n--) { scanf("%s",ch); for(i=0;ch[i];i++) if(ch[i]!='0') break; insert(ch+i); } printf("%d\n",ans); delet(root); } return 0; }

?

?

?

?

?

首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇poj 3186区间dp 下一篇UVa1640 - The Counting Problem(..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: