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

Shall they all get their tea in the same day?
Posted by SPIRiT 28 Aug 2006 13:08
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?
Re: Shall they all get their tea in the same day?
Posted by AlexF 28 Aug 2006 15:31
No! You should check this situation, too! Some of them maybe will be able to drink tea after midnight! ) good luck!)
Another question arose in my mind...(+)
Posted by SPIRiT 29 Aug 2006 14:40
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)?
Re: Another question arose in my mind...(+)
Posted by AlexF 29 Aug 2006 20:24
I got AC with double precision!)