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 1607. Taxi

???
Posted by Search 2 Mar 2008 01:06
Please help me.I always have WA#4.
Give me any tests.
THAnk!!!><
Re: ???
Posted by denton 2 Mar 2008 15:11
Try this:

1) 100 100 150 20
Answer is 150

2) 100 100 50 20
Answer is 100
Re: ???
Posted by Search 3 Mar 2008 20:06
Now I've WA#14.Please give some new tests.Thank!!!

Edited by author 03.03.2008 20:06
Re: ???
Posted by SP2 4 Mar 2008 16:34
denton> Thanks for the first test. It really helped me!!!
Re: ???
Posted by Plamen_Iliev 5 Apr 2008 19:36
I think the answer is 200!!!
wrong
Posted by Velea Alex 29 Dec 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
Posted by Wayfarer 15 Mar 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: ???
Posted by Dior 10 Jun 2014 21:33
thanks a lot, your tests helped me
Re: ???
Posted by Hao123 9 Oct 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: ???
Posted by Bahodir | {TUIT} | 29 Nov 2014 17:07
Inpt : 1 2 12 3
Output : 5
Re: wrong
Posted by Bahodir | {TUIT} | 29 Nov 2014 17:24
Accepted
Test:
3 3 5 2
5

Edited by author 29.11.2014 20:35
Re: ???
Posted by Virus TI 12 Dec 2018 21:21
1 2 12 3
answer 6

Edited by author 12.12.2018 21:22
Re: ???
Posted by gunfighter 12 Mar 2019 23:15
thanks for the test, helped to get AC after WA#4

Edited by author 12.03.2019 23:16