結果

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

テストケース

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

ソースコード

diff #

from math import floor
T,S,D=map(int,input().split())

t = D/S
ans = floor(t/24)*12
t-=ans*24
T-=6
T%=24
te = T+t
if te>12:
    if T<12:
        t-=12-T
    else:
        ans-=T-12
    te-=12
ans+=min(12,te)
print(ans)
0