結果

問題 No.3065 Speedrun (Normal)
ユーザー Facade
提出日時 2025-03-21 21:24:22
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 281 bytes
コンパイル時間 433 ms
コンパイル使用メモリ 82,780 KB
実行使用メモリ 54,068 KB
最終ジャッジ日時 2025-03-21 21:24:24
合計ジャッジ時間 1,569 ms
ジャッジサーバーID
(参考情報)
judge7 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

score=list(map(int,input().split()))
lst=list(map(int,input().split()))
time=lst[-1]
ans=0
for i in range(4):
    if time>=score[i]*lst[i]:
        time-=score[i]*lst[i]
        ans+=score[i]
    else:
        ans+=time//(lst[i])
        print(ans)
        exit()
print(sum(score))
0