結果
| 問題 | No.3065 Speedrun (Normal) |
| ユーザー |
titia
|
| 提出日時 | 2025-03-21 21:25:12 |
| 言語 | Python3 (3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 16 ms / 2,000 ms |
| + 580µs | |
| コード長 | 245 bytes |
| 記録 | |
| コンパイル時間 | 442 ms |
| コンパイル使用メモリ | 14,720 KB |
| 実行使用メモリ | 10,240 KB |
| 最終ジャッジ日時 | 2026-11-06 14:51:34 |
| 合計ジャッジ時間 | 1,927 ms |
|
ジャッジサーバーID (参考情報) |
judge7_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 |
ソースコード
import sys
input = sys.stdin.readline
A,B,C,D=map(int,input().split())
P,Q,R,S,T=map(int,input().split())
ANS=0
L=[(P,A),(Q,B),(R,C),(S,D)]
L.sort()
for x,y in L:
if T>0:
k=min(T//x,y)
ANS+=k
T-=k*x
print(ANS)
titia