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 1357. Teakettle 1.0 for Dummies

What is test#5?
Posted by AlMag 16 Jun 2007 14:12
Maybe, you know some tricks?
Re: What is test#5?
Posted by An 12 Jun 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?
Posted by kirill 18 Feb 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?
Posted by Ade 20 Jan 2013 10:29
Thanks. Silly am I.
Re: What is test#5?
Posted by Donart 17 Nov 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?
Posted by ZamNick 3 Feb 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