|
|
back to boardWhy can't I output tree in such way: (see in) ??? LOOK PLEASE! For sample input: WINNT _SYSTEM32 __CONFIG ___GAMES ____WINNT _____DRIVERS ______HOME _______WIN ________SOFT _________GAMES __________DRIVERS ___________WINNT ____________SYSTEM32 _____________CERTSRV ______________CERTCO~1 _______________X86 It's a directory tree! It's not illegal! But why I have WA on FIRST test (I think it is sample) ??? Re: Why can't I output tree in such way: (see in) ??? LOOK PLEASE! it's illegal... they are not sorted and too many spaces there... What's your point about "illegal" ? But I think it is a normal directory tree! Where there can be a mistake? In my example all directories (excluding last) have one subdirectory, root directory is only one. Why it isn't a directory tree??? Re: But I think it is a normal directory tree! I don't understand what do you mean... What is with test of yours? It's not in the official tests so what do you mean about mistake? I mean that for sample input I output that tree. For sample input I make tree shown in the first message. I can't understand why this tree can't be right answer. Re: I mean that for sample input I output that tree. Read the description better.The branches should be sorted, so GAMES ->DRIVERS should appear before WINNT and with no leading spaces because its a main directory. Your tree supose that GAMES is descendent from WINNT, WINNT is in fact the root of all sub-directories in your tree, which is obviously wrong. Edited by author 01.04.2005 17:15 |
|
|