✎
编程开发网
首页
C语言
C++
面试
Linux
函数
Windows
数据库
下载
搜索
当前位置:
首页
->
AI编程基础
->
c++编程基础
HDU 1800 Flying to the Mars(字典树)(二)
2015-11-21 01:02:38
·
作者:
·
浏览:
18
标签:
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