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

Обсуждение задачи 1607. Такси

???
Послано Search 2 мар 2008 01:06
Please help me.I always have WA#4.
Give me any tests.
THAnk!!!><
Re: ???
Послано denton 2 мар 2008 15:11
Try this:

1) 100 100 150 20
Answer is 150

2) 100 100 50 20
Answer is 100
Re: ???
Послано Search 3 мар 2008 20:06
Now I've WA#14.Please give some new tests.Thank!!!

Edited by author 03.03.2008 20:06
Re: ???
Послано SP2 4 мар 2008 16:34
denton> Thanks for the first test. It really helped me!!!
Re: ???
Послано Plamen_Iliev 5 апр 2008 19:36
I think the answer is 200!!!
wrong
Послано Velea Alex 29 дек 2008 22:57
Posted by denton March 02, 2008 15:11

Try this:

1) 100 100 150 20
Answer is 150

2) 100 100 50 20
Answer is 100

re::::

at test 2 the answer is 50 becouse the taxi driver ofer him 50 and in less then 100 :D

Edited by author 29.12.2008 22:58

Edited by author 29.12.2008 22:58
2 Velea Alex
Послано Wayfarer 15 мар 2009 16:24
You are wrong, 'cause first turn is Petr and after that the turn of driver, but I think driver wasn't stupid one and he would not offer Petr smoller summ.
Re: ???
Послано Dior 10 июн 2014 21:33
thanks a lot, your tests helped me
Re: ???
Послано Hao123 9 окт 2014 17:28
Hi, I have issue with the case "100 100 50 20"...
Because logically the drivers shouldnt ask a price < price offer from Peter..
Re: ???
Послано Bahodir | {TUIT} | 29 ноя 2014 17:07
Inpt : 1 2 12 3
Output : 5
Re: wrong
Послано Bahodir | {TUIT} | 29 ноя 2014 17:24
Accepted
Test:
3 3 5 2
5

Edited by author 29.11.2014 20:35
Re: ???
Послано Virus TI 12 дек 2018 21:21
1 2 12 3
answer 6

Edited by author 12.12.2018 21:22
Re: ???
Послано gunfighter 12 мар 2019 23:15
thanks for the test, helped to get AC after WA#4

Edited by author 12.03.2019 23:16