結果
問題 |
No.8099 夜の道路は気をつけて運転しなければならない
|
ユーザー |
![]() |
提出日時 | 2023-03-31 22:35:12 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 234 bytes |
コンパイル時間 | 207 ms |
コンパイル使用メモリ | 82,264 KB |
実行使用メモリ | 53,960 KB |
最終ジャッジ日時 | 2024-09-23 01:23:11 |
合計ジャッジ時間 | 1,388 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 5 WA * 8 |
ソースコード
T,S,D = map(int, input().split()) ans = 0 while D>0: if 0<=T<6 or 18<=T<24: if D>=S: ans+=1 D-=S else: ans+=D/S D-=S else: D-=S T=(T+1)%24 print(ans)