Search found 4 matches

by hectorUCI
Thu Mar 10, 2005 6:40 am
Forum: Volume 107 (10700-10799)
Topic: 10701 - Pre, in and post
Replies: 13
Views: 6580

Problem 10701 It works but ... WA

Please somebody check it. I know it works but i received WA Program ACM10701; Type BTree = ^Node; Node = record value : Char; L,R : BTree; end; Traversal = String[54]; Var Preorder,Inorder,Postorder : Traversal; A : BTree; C,N,i,j,k:integer; V:Char; Procedure MakeTree(var P:BTree;POrder:Traversal); ...
by hectorUCI
Thu Mar 10, 2005 6:15 am
Forum: Volume 107 (10700-10799)
Topic: 10701 - Pre, in and post
Replies: 13
Views: 6580

10701 Wrong Answer WHYYYYY????

Here you are my PASCAL code for 10701 problem. What I do is to build the tree and then traverse it in PostOrder. I think it works but... WA... Does anybody could help me, please??? Sincerelly yours Hector Program ACM10701; Type BTree = ^Node; Node = record value : Char; L,R : BTree; end; Traversal =...
by hectorUCI
Fri Mar 04, 2005 7:52 am
Forum: Volume 4 (400-499)
Topic: 465 - Overflow
Replies: 104
Views: 26979

Problem 465

I think this code works but .. i get WA. Could anybody check it, please? Program ACM465; var I,D : LongInt; p,pm,pp,pei,ped:integer; S,SI,SD : String; b:boolean; Begin while not eof do begin readln( S ); pm:=pos('+',S); pp:=pos('*',S); b:=FALSE; p:=pm+pp; if p=0 then continue; SI:=copy(S,1,p-1); whi...
by hectorUCI
Tue Mar 01, 2005 8:42 am
Forum: Volume 106 (10600-10699)
Topic: 10679 - I Love Strings!!
Replies: 101
Views: 51266

10679 Please review

I think this solution work but I received WRONG ANSWER. I would like anybody review this code in order to get the bugs because I can

Go to advanced search