結果

問題 No.3099 夜の道路は気をつけて運転しなければならない
ユーザー 👑 timitimi
提出日時 2023-03-31 22:11:22
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 228 bytes
コンパイル時間 225 ms
コンパイル使用メモリ 81,592 KB
実行使用メモリ 53,440 KB
最終ジャッジ日時 2023-10-24 08:13:32
合計ジャッジ時間 1,490 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

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