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

Обсуждение задачи 1205. На метро или пешком?

Is it OK that I don't use underground at all?
Послано Maigo Akisame (maigoakisame@yahoo.com.cn) 1 ноя 2004 03:20
Re: Is it OK that I don't use underground at all?
Послано Roman Lipovsky 1 ноя 2004 12:09
Yes, in some tests you don't need to use underground.
So what shall I output in this case(+)
Послано Maigo Akisame (maigoakisame@yahoo.com.cn) 3 ноя 2004 04:21
1. What should I output if I don't use underground at all?
2. What should I output if I get on the underground, get off, then on, then off, then on, then off...?
Re: So what shall I output in this case(+)
Послано Roman Lipovsky 3 ноя 2004 11:53
1. Sample input:

1 2
2
2 2
6 3
1 2
0 0
0 0
0 3

Answer of my AC program:
3.0000000
0

2. Sample input:

1 2
4
1 0
3 0
4 0
6 0
1 2
3 4
0 0
0 0
7 0

Answer of my AC program:
5.0000000
4 1 2 3 4

Edited by author 03.11.2004 12:31
Thanks. I got AC.
Послано Maigo Akisame (maigoakisame@yahoo.com.cn) 4 ноя 2004 07:29
Re: So what shall I output in this case(+)
Послано Crash_access_violation 27 май 2008 20:22
Now I got AC. this test helped me :
1 2
6
2 5
3 5
4 5
5 5
6 5
7 5
1 4
3 6
3 4
0 0
1 5
8 5
answer :
5.5000000
4 1 4 3 6

good luck

Edited by author 28.05.2008 00:31
Re: So what shall I output in this case(+)
Послано Aleksander 13 авг 2009 00:13
But I think that in this test also can by another answer:
5.5000000
2 1 4

Am I right?
Re: So what shall I output in this case(+)
Послано ilucian1 30 янв 2010 14:20
yes, you are right, my program found the solution
5.5000000
2 1 4
and it was accepted
Re: Thanks. I got AC.
Послано Edric Mao 4 дек 2010 17:20
thx for the test
Re: So what shall I output in this case(+)
Послано Hrayr 12 июн 2011 01:04
My prog passed all of this tests but still crash(access violation) test3,Why?

Edited by author 12.06.2011 22:19
Re: So what shall I output in this case(+)
Послано phonism 2 окт 2012 13:31
Thanks for your sample. >_<