No.8099 You Must Drive Carefully on Roads at Night
Problem Statement
Watanuki is going to travel by car from Town A to Town B.
Watanuki departs from Town A at $T$ o'clock and travels at a speed of $S$ km per hour. Town A and Town B are connected by a road of length $D$ km.
The period from $18$ o'clock to $6$ o'clock is considered night. Roads at night are dangerous. You must drive carefully.
While traveling from Town A to Town B, for how many hours must Watanuki drive carefully?
Constraints
- All inputs are integers
- $0\le T\lt 24$
- $1\le S,D\le 1000$
Input
$T$ $S$ $D$
Output
Output the number of hours for which Watanuki must drive carefully.
Your answer is judged correct if its absolute or relative error from the expected answer is at most $10^{-5}$.
Sample
Sample 1
Input
23 30 110
Output
3.666666666666666
Watanuki departs from Town A at $23$ o'clock and travels $110$ km at a speed of $30$ km per hour. It is night during the entire drive, so Watanuki must drive carefully.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。