ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1535. The Hobbit or There and Back Again

test 1
Posted by Slusarenko Alexey 22 Mar 2007 22:33
I have a problem. I think my algorithm is right (I've tested it by search), but solution is not accepted. Could somebody give the first test?
Re: test 1
Posted by Slusarenko Alexey 24 Mar 2007 22:14
I've understood what's the metter.
input: 5
possible outputs:
1 5 2 4 3
1 3 5 4 2
or
1 4 3 2 5
1 2 4 5 3
But only the second solution is accepted.

Edited by author 25.03.2007 21:09
You are wrong.
Posted by Sandro (USU) 25 Mar 2007 14:09
For 5 correct answer is
1 5 2 3 4
1 3 5 4 2
or
1 4 3 2 5
1 2 4 5 3
Both are acceptable.

Edited by author 25.03.2007 14:12
Re: You are wrong.
Posted by Slusarenko Alexey 25 Mar 2007 21:07
It's very strange...
I've sent the solution that gives the first variant of answer and my solution haven't been accepted. Then I've changed only the order of output numbers (the second variant of answer) and my solution have been accepted.
Re: You are wrong.
Posted by [ksu] glTron::teal 26 May 2007 20:39
I wrote two solutions where one have first result and other have second result. But they both have WA7