結果

問題 No.8099 夜の道路は気をつけて運転しなければならない
ユーザー timi
提出日時 2023-03-31 22:11:22
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 228 bytes
コンパイル時間 167 ms
コンパイル使用メモリ 82,124 KB
実行使用メモリ 54,352 KB
最終ジャッジ日時 2024-09-23 00:53:45
合計ジャッジ時間 1,355 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 5 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

T,S,D=map(int, input().split())
t=D/S
now=T
ans=0
for i in range(10000):
  if 18<=now<24 or now<6:
    tt=min(1,t)
    t-=tt 
    ans+=tt 
  else:
    tt=min(1,t)
    t-=tt
  now+=1
  now%=24
  if t==0:
    print(ans)
    exit()
0