結果
問題 | No.3065 Speedrun (Normal) |
ユーザー |
![]() |
提出日時 | 2025-03-21 21:24:25 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 35 ms / 2,000 ms |
コード長 | 274 bytes |
コンパイル時間 | 219 ms |
コンパイル使用メモリ | 82,032 KB |
実行使用メモリ | 53,424 KB |
最終ジャッジ日時 | 2025-03-21 21:24:28 |
合計ジャッジ時間 | 1,438 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
ソースコード
A, B, C, D = map(int, input().split())P, Q, R, S, T = map(int, input().split())E = sorted([(A, P), (B, Q), (C, R), (D, S)], key=lambda x:x[1])ans = 0for c, t in E:if t*c < T:T -= t*cans += celse:ans += T//tbreakprint(ans)