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

Search ??? [12] // Problem 1607. Taxi 2 Mar 2008 01:06
Please help me.I always have WA#4.
Give me any tests.
THAnk!!!><
denton Re: ??? [9] // Problem 1607. Taxi 2 Mar 2008 15:11
Try this:

1) 100 100 150 20
Answer is 150

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

Edited by author 03.03.2008 20:06
SP2 Re: ??? // Problem 1607. Taxi 4 Mar 2008 16:34
denton> Thanks for the first test. It really helped me!!!
Plamen_Iliev Re: ??? // Problem 1607. Taxi 5 Apr 2008 19:36
I think the answer is 200!!!
Velea Alex wrong [2] // Problem 1607. Taxi 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
Wayfarer 2 Velea Alex // Problem 1607. Taxi 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.
Bahodir | {TUIT} | Re: wrong // Problem 1607. Taxi 29 Nov 2014 17:24
Accepted
Test:
3 3 5 2
5

Edited by author 29.11.2014 20:35
Dior Re: ??? // Problem 1607. Taxi 10 Jun 2014 21:33
thanks a lot, your tests helped me
Hao123 Re: ??? // Problem 1607. Taxi 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..
gunfighter Re: ??? // Problem 1607. Taxi 12 Mar 2019 23:15
thanks for the test, helped to get AC after WA#4

Edited by author 12.03.2019 23:16
Bahodir | {TUIT} | Re: ??? [1] // Problem 1607. Taxi 29 Nov 2014 17:07
Inpt : 1 2 12 3
Output : 5
Virus TI Re: ??? // Problem 1607. Taxi 12 Dec 2018 21:21
1 2 12 3
answer 6

Edited by author 12.12.2018 21:22