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

why the sample solution is 6?
Posted by iRabbit 25 Feb 2006 14:07
Re: why the sample solution is 6?
Posted by Pio (Pio@mail.by) 25 Feb 2006 14:15
I think the answer:
0 1 3 4 6 7
Re: why the sample solution is 6?
Posted by mara 25 Feb 2006 15:26
1 2 3 4 6 7
Re: why the sample solution is 6?
Posted by Squid 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
Re: why the sample solution is 6?
Posted by b4die 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.
Re: why the sample solution is 6?
Posted by [AESC USU] Golubev_Sanja 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.
Re: why the sample solution is 6?
Posted by Squid 25 Feb 2006 16:00
ok, you're right.

so the answer is:
1 2 3 4 6 7
Re: why the sample solution is 6?
Posted by [AESC USU] Golubev_Sanja 25 Feb 2006 16:09
yes, but i still can't understand how to make it in C++. :(((((
Re: why the sample solution is 6?
Posted by Lan Jun 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.
Re: why the sample solution is 6?
Posted by Aleksandr Klepinin 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...