結果

問題 No.3099 夜の道路は気をつけて運転しなければならない
ユーザー KudeKude
提出日時 2023-03-31 21:35:10
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 210 bytes
コンパイル時間 578 ms
コンパイル使用メモリ 81,696 KB
実行使用メモリ 53,508 KB
最終ジャッジ日時 2023-10-24 07:24:25
合計ジャッジ時間 1,390 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,484 KB
testcase_01 AC 38 ms
53,484 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 38 ms
53,484 KB
testcase_05 AC 38 ms
53,484 KB
testcase_06 AC 38 ms
53,484 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 38 ms
53,484 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t, s, d = map(int, input().split())
h = d / s
day, h = divmod(h, 24)
ans = day * 12
t = (t - 18) % 24
if t < 12:
    ans += min(12, t + h) - t
if t + h >= 24:
    ans += min(36, t + h) - 24
print(f'{ans:.12f}')
0