Page 3 of 3

Posted: Sun Sep 25, 2005 9:15 pm
by Emilio
Hello StatujaLeha!

You must consider
for all i from 2 up to k-1, vi-1 is not equal to vi+1

Yes

Posted: Sun Sep 25, 2005 9:34 pm
by StatujaLeha
I did not say that drive is incorrect, i said there is more lexicographically small drive from 0 to 4. Because of it I think output is incorrect.

Posted: Sun Sep 25, 2005 10:03 pm
by tRipper
0 3 1 2 3 0 3 1 2 3 0 3 1 2 3 0 4
Your drive is invalid because of the sequence 3 0 3

Posted: Sun Sep 25, 2005 10:04 pm
by StatujaLeha
Sorry, I see.

Posted: Mon Sep 26, 2005 2:49 am
by Abednego
What Emilio is saying is that your example: " 3 1 2 3 0 3 1 2 3 0 4" is not a drive. By definition, a drive may not contain "3 0 3" because that is a U-turn.

... Oh. I see that it has already bee answered. Oops.

Thanks all!

Posted: Tue Sep 27, 2005 5:57 pm
by StatujaLeha
Thanks all!
I have got ACC.

Posted: Wed Nov 01, 2006 3:42 pm
by shanto86
can any one plz hlp me? I am getting WA :(

Code: Select all

AC