Page 1 of 1

712 - S-Trees

Posted: Fri Jan 19, 2007 11:15 am
by Donotalo
for the following input:

Code: Select all

3
x1 x2 x3
00000111
4
000
010
111
110
3
x3 x1 x2
00010011
4
000
010
111
110
0
both of the following outputs result PE:

Output 1

Code: Select all

S-Tree #1:
0011

S-Tree #2:
0011
Output 2

Code: Select all

S-Tree #1:
0011

S-Tree #2:
0011

why? please give suggestions on how to fix it!

Posted: Fri Jan 19, 2007 8:33 pm
by Jan
The problem states...
Output a blank line after each test case.
So output 2 is correct. And I can't think of any critical case.

Posted: Sat Jan 20, 2007 7:23 am
by Donotalo
yes, i think so. output 2 should be correct. but after i got PE in output 2, i tried output 1 and also got PE. that's why i asked for help here, and wondering what's my mistake! :roll:

Re:

Posted: Mon Nov 10, 2008 8:35 am
by DD
Donotalo wrote:yes, i think so. output 2 should be correct. but after i got PE in output 2, i tried output 1 and also got PE. that's why i asked for help here, and wondering what's my mistake! :roll:
From my A.C. output, I also thought the output2 is the correct output formmat, or you can paste your codes and let us examine it.