問題一覧 > ネタ問題

No.8099 You Must Drive Carefully on Roads at Night

レベル : / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 小数誤差許容問題 絶対誤差または相対誤差が $10^{-5}$ 以下。ただし、ジャッジ側の都合で500桁未満にしてください
タグ : (AC するまで非表示) / 解いたユーザー数 125
作問者 : 👑 箱星 / テスター : 👑 p-adic
お気に入りにしたユーザー ProblemId : 5484 / 自分の提出
問題文最終更新日: 2023-03-12 13:36:00
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder April Fool Contest 2023 (順位表) の他の問題:

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もしくは右上の雲マークをクリックしてアカウントを作成してください。