結果

問題 No.3099 夜の道路は気をつけて運転しなければならない
ユーザー Ekiben542Ekiben542
提出日時 2023-04-01 10:45:58
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 250 bytes
コンパイル時間 512 ms
コンパイル使用メモリ 81,520 KB
実行使用メモリ 53,288 KB
最終ジャッジ日時 2023-10-24 17:33:21
合計ジャッジ時間 1,597 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

t, s, d = map(int, input().split())

time = d / s

if t >= 18 or t < 6:
    night_time = time
else:
    if (t + time) >= 18 or (t + time) < 6:
        night_time = time - (18 - t)
    else:
        night_time = 0

print("{:.10f}".format(night_time))
0