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 1437. Gasoline Station

iRabbit why the sample solution is 6? [9] // Problem 1437. Gasoline Station 25 Feb 2006 14:07
Pio (Pio@mail.by) Re: why the sample solution is 6? [8] // Problem 1437. Gasoline Station 25 Feb 2006 14:15
I think the answer:
0 1 3 4 6 7
mara Re: why the sample solution is 6? [7] // Problem 1437. Gasoline Station 25 Feb 2006 15:26
1 2 3 4 6 7
Squid Re: why the sample solution is 6? [6] // Problem 1437. Gasoline Station 25 Feb 2006 15:29
mara wrote 25 February 2006 15:26
1 2 3 4 6 7
How can you measure 1???

I think: 0 2 3 4 6 7
b4die Re: why the sample solution is 6? [5] // Problem 1437. Gasoline Station 25 Feb 2006 15:37
How can you measure 2???
When you fill the third can, and put 3 to the second one, then the second can has 3,and the third one has 1.
[AESC USU] Golubev_Sanja Re: why the sample solution is 6? [4] // Problem 1437. Gasoline Station 25 Feb 2006 15:42
It is simple. just fill the second, pour it in the third. Then fill the second again and pour 1 L to the third. Finally there are 2 L in the second.
Squid Re: why the sample solution is 6? [3] // Problem 1437. Gasoline Station 25 Feb 2006 16:00
ok, you're right.

so the answer is:
1 2 3 4 6 7
[AESC USU] Golubev_Sanja Re: why the sample solution is 6? [2] // Problem 1437. Gasoline Station 25 Feb 2006 16:09
yes, but i still can't understand how to make it in C++. :(((((
Lan Jun Re: why the sample solution is 6? [1] // Problem 1437. Gasoline Station 2 Mar 2006 13:35
the solution is:1 2 3 4 6 7
why 5 isn't an answer?
while the second has 2,pour it to the third,and fill the second again.
Aleksandr Klepinin Re: why the sample solution is 6? // Problem 1437. Gasoline Station 3 Mar 2006 01:01
While the second has 2, the third is already filled completely. So you can not pour second to the third...