ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1535. Хоббит или Туда и обратно

test 1
Послано Slusarenko Alexey 22 мар 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
Послано Slusarenko Alexey 24 мар 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.
Послано Sandro (USU) 25 мар 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.
Послано Slusarenko Alexey 25 мар 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.
Послано [ksu] glTron::teal 26 май 2007 20:39
I wrote two solutions where one have first result and other have second result. But they both have WA7