ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1437. ACM для ГСМ

why the sample solution is 6?
Послано iRabbit 25 фев 2006 14:07
Re: why the sample solution is 6?
Послано Pio (Pio@mail.by) 25 фев 2006 14:15
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
mara писал(a) 25 февраля 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?
Послано 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?
Послано [AESC USU] Golubev_Sanja 25 фев 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?
Послано 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?
Послано [AESC USU] Golubev_Sanja 25 фев 2006 16:09
yes, but i still can't understand how to make it in C++. :(((((
Re: why the sample solution is 6?
Послано Lan Jun 2 мар 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?
Послано Aleksandr Klepinin 3 мар 2006 01:01
While the second has 2, the third is already filled completely. So you can not pour second to the third...