結果
| 問題 |
No.3065 Speedrun (Normal)
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2025-03-21 21:25:12 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 34 ms / 2,000 ms |
| コード長 | 245 bytes |
| コンパイル時間 | 183 ms |
| コンパイル使用メモリ | 12,160 KB |
| 実行使用メモリ | 10,112 KB |
| 最終ジャッジ日時 | 2025-03-21 21:25:14 |
| 合計ジャッジ時間 | 1,540 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
ソースコード
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