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

Обсуждение задачи 1357. Чайник для чайников

What is test#5?
Послано AlMag 16 июн 2007 14:12
Maybe, you know some tricks?
Re: What is test#5?
Послано An 12 июн 2009 16:15
input
6
00:00:00
00:00:01
00:00:02
00:00:03
00:00:04
00:13:00
AC output
00:13:58
00:13:58
00:13:58
00:13:58
00:13:58
00:16:46
Re: What is test#5?
Послано kirill 18 фев 2011 16:59
perhaps you meant this test?
6
00:00:00
00:00:01
00:00:02
00:00:03
00:00:04
00:00:05
Re: What is test#5?
Послано Ade 20 янв 2013 10:29
Thanks. Silly am I.
Re: What is test#5?
Послано Donart 17 ноя 2013 14:19
my output WA5
00:13:58
00:13:58
00:13:58
00:13:58
00:13:58
00:15:48
why 00:16:46? Can someone please explain this to me.
Re: What is test#5?
Послано ZamNick 3 фев 2014 03:05
See, kettles number 1 - 5 will drink coffee at the same time (00:13:58) and only in this time kettle number 6 may begin to boil water for himself ..... He will need 2:48 seconds for that. Why 2:48 ? ...... because in this time 200 ml water will be in the kettle with 20 degrees .... but kettle number 6 want 100 degrees in the main kettle .... then we take:
deltaT = 100 - 20 = 80
C and P you know from statement
m = 200
using formula from statement (deltaT = P * littleT / C * m) we will take that
littleT = deltaT * C * m / P = 02:48        --- this is time that we need to boil water.
Result : 00:13:58 + 00:02:48 = 00:16:46