hdu3791 搜索二叉树 (最基本的树)
摘要:
View Code 1 #include<stdio.h> 2 #include<string.h> 3 int tree[1050]; 4 int tree1[1050]; 5 char s[12]; 6 int main() 7 { 8 int t,i; 9 while(scanf("%d",&t),t)10 {11 scanf("%s",s);12 memset(tree,-1,sizeof(tree));13 for(i=0;s[i];i++)14 {15 int c=s[... 阅读全文
posted @ 2012-11-02 17:23 点A点C 阅读(314) 评论(0) 推荐(0) 编辑