結果
問題 |
No.3065 Speedrun (Normal)
|
ユーザー |
![]() |
提出日時 | 2025-03-22 15:21:49 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 38 ms / 2,000 ms |
コード長 | 243 bytes |
コンパイル時間 | 331 ms |
コンパイル使用メモリ | 82,300 KB |
実行使用メモリ | 54,088 KB |
最終ジャッジ日時 | 2025-03-22 15:21:51 |
合計ジャッジ時間 | 2,045 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
ソースコード
A, B, C, D = map(int, input().split()) P, Q, R, S, T = map(int, input().split()) X = [(P, A), (Q, B), (R, C), (S, D)] X.sort() X.reverse() ans = 0 while T and len(X): t, c = X.pop() cc = min(c, T // t) ans += cc T -= cc * t print(ans)