結果

問題 No.3065 Speedrun (Normal)
ユーザー Kude
提出日時 2025-03-21 21:23:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 36 ms / 2,000 ms
コード長 169 bytes
コンパイル時間 389 ms
コンパイル使用メモリ 82,136 KB
実行使用メモリ 53,572 KB
最終ジャッジ日時 2025-03-21 21:23:14
合計ジャッジ時間 1,543 ms
ジャッジサーバーID
(参考情報)
judge5 / judge7
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

a = map(int, input().split())
*c, t = map(int, input().split())
ans = 0
for ci, ai in sorted(zip(c, a)):
    x = min(ai, t // ci)
    ans += x
    t -= x * ci
print(ans)
0