結果

問題 No.3065 Speedrun (Normal)
ユーザー moon17
提出日時 2025-03-22 20:27:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 164 bytes
コンパイル時間 419 ms
コンパイル使用メモリ 82,524 KB
実行使用メモリ 53,784 KB
最終ジャッジ日時 2025-03-22 20:27:37
合計ジャッジ時間 2,064 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c,d,p,q,r,s,t=map(int,open(0).read().split())
e=[(a,p),(b,q),(c,r),(d,s)]
e.sort(lambda x:x[1])
ans=0
for x,y in e:
  z=min(x,t//y)
  ans+=z
  t-=z*y
print(ans)
0