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

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!)