Show all threads Hide all threads Show all messages Hide all messages |
WA5 | andreyDagger`~ | 1357. Teakettle 1.0 for Dummies | 5 Jan 2024 22:54 | 1 |
WA5 andreyDagger`~ 5 Jan 2024 22:54 This is invalid test, but anyway 10 00:00:00 00:00:00 00:00:00 00:00:00 00:00:00 00:00:00 00:00:00 00:00:00 00:00:00 00:00:00 Answer: 00:13:58 00:13:58 00:13:58 00:13:58 00:13:58 00:27:56 00:27:56 00:27:56 00:27:56 00:27:56 |
WA4 | 💻Evgeny Nemtsev [UrFU FT-17]'` | 1357. Teakettle 1.0 for Dummies | 12 Oct 2017 02:04 | 1 |
WA4 💻Evgeny Nemtsev [UrFU FT-17]'` 12 Oct 2017 02:04 |
WA6 | Lev_Kireenko 🐬 | 1357. Teakettle 1.0 for Dummies | 7 Jan 2017 13:52 | 1 |
WA6 Lev_Kireenko 🐬 7 Jan 2017 13:52 I get Wa6. I don't know my error. Give me some test please. Edited by author 07.01.2017 13:53 |
My stupid WA11 | Mickkie | 1357. Teakettle 1.0 for Dummies | 29 Jul 2015 21:37 | 1 |
if the "ss" answer equal 60, update to 0 and change mm = mm+1 :) |
What is test#5? | AlMag | 1357. Teakettle 1.0 for Dummies | 3 Feb 2014 03:05 | 6 |
Maybe, you know some tricks? 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 perhaps you meant this test? 6 00:00:00 00:00:01 00:00:02 00:00:03 00:00:04 00:00:05 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. 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 |
WA6 | Adler3D | 1357. Teakettle 1.0 for Dummies | 25 Oct 2012 21:09 | 1 |
WA6 Adler3D 25 Oct 2012 21:09 |
WA #6 | Sandello | 1357. Teakettle 1.0 for Dummies | 15 Sep 2010 18:04 | 3 |
WA #6 Sandello 6 Jan 2010 03:07 What could be in this test? Can you give me some tests? Finally i got AC. I don't know my mistake, i just rewrote my code :) Re: WA #6 Yusupov Azat(UB of TUIT) 15 Sep 2010 18:04 Can you give me any test? I have WA #6 too.But I couldn't find my mistake. My adres azat.1990@mail.ru Edited by author 15.09.2010 18:04 AC Edited by author 12.06.2013 17:10 |
Incorrect test #17 | Alex Tolstov (Vologda STU) | 1357. Teakettle 1.0 for Dummies | 29 Apr 2009 02:14 | 2 |
There are some equal times in test, but "All students wake up at the different moments but during the same day, i.e. all times different and between 00:00:00 and 23:59:59" Check it, please. |
I do not understand... | Loky_Yuri [USTU] | 1357. Teakettle 1.0 for Dummies | 28 Apr 2009 00:44 | 7 |
I don't understood one thing. So look at this test 2 00:00:00 00:00:00 In fact teakettle will be ready to 335.2 second. But if we round this answer, it will be 335, i.e. 00:05:35. And it seems that this correct answer. But to this time teakettle will not be ready! And this test 3 00:00:00 00:00:00 00:05:35 And what should we think? 1) The teakettle is ready to 00:05:35, so in this time it will be EMPTY and the third student will BEGIN to boil water in this time 00:05:35? So answer will be 00:05:35 00:05:35 00:08:23 2) Or we should think that in this situation teakettle will be ready EXACTLY in 335.2 second and the teakettle will be not empty and the third student just ADD water in 00:05:35? So answer will be 00:08:23 00:08:23 00:08:23 My AC program says that you should think in the first way!)) The answer is 00:05:35 00:05:35 00:08:23 Good Luck!)) My AC program print 00:08:23 00:08:23 00:08:23 in time 00:05:35 temperature less than 100 Maybe both variants are right No. Only the second answer is right. Thank you for good test :) Your tests are not correct. |
Minor hints and clarifications | Denis Koshman | 1357. Teakettle 1.0 for Dummies | 17 Aug 2008 18:59 | 1 |
1. Precision of 1e-10 seconds is enough to compare boil-time with wake-time. 2. If some guy wakes up at the same time the water is ready (I mean exact equality up to precision), the water is disposed to cups first. So he will fill up an empty tank in this case. 3. Output times after rounding them UP. It is not quite clear from problem statement, but it's the closest guess if we assume that drinking can start only at integer number of seconds. At least this approach gives AC. 4. Output rounded times modulo 24:00:00 (i.e. if cup is ready the next day, subtract 24 from HH). |
To admins (+) | Chmel_Tolstiy | 1357. Teakettle 1.0 for Dummies | 13 Feb 2007 18:08 | 2 |
Please add test like this: 3 00:00:00 00:00:00 00:05:35 This test is incorrect ("All students wake up at the different moments") |
TEST #8. WHAT IS THIS??? | Loky_Yuri [USTU] | 1357. Teakettle 1.0 for Dummies | 12 Jan 2007 11:13 | 2 |
Something awful! Please give any tests!!! Just mistake with rounding the time. AC now! |
Shall they all get their tea in the same day? | SPIRiT | 1357. Teakettle 1.0 for Dummies | 29 Aug 2006 20:24 | 4 |
The problem says that they wake up in the same day (but in different time). But what if some dummies will have to wait until the midnight passes? I can output the time then, but it will lead to misunderstanding. Is it guaranteed, that they all shall be able to drink in the same day? No! You should check this situation, too! Some of them maybe will be able to drink tea after midnight! ) good luck!) What shall I use for these formulas. Is float or double precision enough for that, or perhaps I should use fractional arifmetics (represent fractions nominator and denominator)? I got AC with double precision!) |
read the text patiently, treat it in the normal way, and you'll get AC:) | WinTokk | 1357. Teakettle 1.0 for Dummies | 9 Sep 2005 13:36 | 1 |
|
Strange | UNKNOWN_LAMER | 1357. Teakettle 1.0 for Dummies | 18 Apr 2005 18:18 | 2 |
Strange UNKNOWN_LAMER 23 Mar 2005 13:09 Point 2: "If another student boils water already, he should add 200 ml of water in the teakettle" Point 3: "If another student boils water and the teakettle is full already ..."
And what is in the case if several students boil water already? I think I should read not "another student boils" but "the other students boil". Am I right? Edited by author 23.03.2005 21:48 The 3rd point of instruction was corrected. Thank you. But why wasn't the 2nd corrected too? By the way,"another students boil" is a grammar mistake. "The other students boil" is correct. I have AC after rejudge, but the problem statement was unclear to me when I've read it for the first time. |
Test #8 is INCORRECT!!! Be attentive! | Iceman | 1357. Teakettle 1.0 for Dummies | 18 Apr 2005 12:34 | 2 |
Problem statement says " All students wake up at the DIFFERENT moments but during the same day" but in test #8 there are students that wake up simultaneously!!! |
WA 8 ... WA 8 ? Maybe i misunderstood the problem ? | Konstantin Malashev | 1357. Teakettle 1.0 for Dummies | 15 Apr 2005 11:11 | 2 |
This is bad problem, and stoobid |
Strange ? WA 8 ? some tricks in description ... ??? | Konstantin Malashev | 1357. Teakettle 1.0 for Dummies | 10 Apr 2005 11:48 | 1 |
|
Please give some test. I get WA 7-8. | Lifanov | 1357. Teakettle 1.0 for Dummies | 20 Mar 2005 10:12 | 1 |
Time is different? for(i=0;i<400000;i++){ //for each sec if(m!=0.0 && i!=0){ dt=((100.0-T)*C*m)/P; if(dt>1.0) dt=0.0; T+=P*1.0/(C*m); // dt=0.0; } if(fabs(T-100.0)<0.0000001 || T>100.0){ //zakipel j=(int)(m/200.0); out(i,j); if(MWait<=1000.0){ if(MWait==0.0){ m=0.0; T=20.0; } else{ m=MWait; MWait=0.0; T=20.0; T+=P*dt/(C*m); } } else{ m=1000.0; MWait-=1000.0; T=20.0; T+=(P*dt)/(C*m); }
} if(time[i]==1){//add new people if(m==1000.0){ MWait+=200.0; }else{ // printf("Dolili "); // out(i,1); T=(m*T+4000.0)/(m+200.0); m+=200.0; } } Sorry for my English. |