why the sample solution is 6?
Re: why the sample solution is 6?
I think the answer:
0 1 3 4 6 7
Re: why the sample solution is 6?
Послано
mara 25 фев 2006 15:26
1 2 3 4 6 7
Re: why the sample solution is 6?
Послано
Squid 25 фев 2006 15:29
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?
Послано
b4die 25 фев 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?
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?
Послано
Squid 25 фев 2006 16:00
ok, you're right.
so the answer is:
1 2 3 4 6 7
Re: why the sample solution is 6?
yes, but i still can't understand how to make it in C++. :(((((
Re: why the sample solution is 6?
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?
While the second has 2, the third is already filled completely. So you can not pour second to the third...