UVA 536(p177)----Tree Recovery
来源:互联网 发布:电脑绘画软件 编辑:程序博客网 时间:2024/05/29 04:41
varpost,st1,st2,st:ansistring;l:longint;procedure solve(pre,mid:ansistring);var i:integer;begin if (pre='') or (mid='') then exit; i:=pos(pre[1],mid); solve(copy(pre,2,i),copy(mid,1,i-1)); solve(copy(pre,i+1,length(pre)-i),copy(mid,i+1,length(mid)-i)); post:=post+pre[1];end;begin while(not eof)do begin readln(st); post:=''; l:=pos(' ',st); st1:=copy(st,1,l-1); st2:=copy(st,l+1,length(st)); solve(st1,st2); writeln(post); end;end.题目地址:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=477
0 0
- UVA 536(p177)----Tree Recovery
- UVA 536 - Tree Recovery
- uva 536Tree Recovery
- uva 536 - Tree Recovery
- UVA 536 Tree Recovery
- UVA 536 Tree Recovery
- UVa, 536 Tree Recovery
- uva 536 - Tree Recovery
- UVa 536 - Tree Recovery
- UVA - 536 Tree Recovery
- UVa 536 Tree Recovery
- UVa 536 - Tree Recovery
- UVA - 536 Tree Recovery
- Uva - 536 - Tree Recovery
- Tree Recovery-UVA 536
- uva 536 - Tree Recovery
- Uva-536 Tree Recovery
- UVA - 536 Tree Recovery
- iOS 设计模式 - 命令模式
- 文献笔记:《Can we still avoid automatic face detection?》读后感~
- 这一年,我们一起追过的梦想
- 【drp 1】使用易宝实现在线支付
- linux 后台开发类常见问题及知识点
- UVA 536(p177)----Tree Recovery
- 1053. Path of Equal Weight (30)
- leetcode-103-Binary Tree Zigzag Level Order Traversal
- IE8 div 非按钮点击之后,为了防止重复点击,会默认添加[disabled=“disabled”]
- hdu 4283 You Are the One
- hdu1071 The area
- 近200篇机器学习&深度学习资料分享
- hdu 1518 square
- Uva The Tower of Babylon