結果
| 問題 |
No.3065 Speedrun (Normal)
|
| コンテスト | |
| ユーザー |
nikoro256
|
| 提出日時 | 2025-03-21 21:37:30 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 334 bytes |
| コンパイル時間 | 537 ms |
| コンパイル使用メモリ | 82,560 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2025-03-21 21:37:33 |
| 合計ジャッジ時間 | 1,324 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
ソースコード
A,B,C,D=map(int,input().split())
P,Q,R,S,T=map(int,input().split())
[(P,A),(Q,B),(R,C),(S,D)] = sorted([(P,A),(Q,B),(R,C),(S,D)])
if P*A>=T:
print(T//P)
elif P*A+Q*B>=T:
print(A+(T-P*A)//Q)
elif P*A+Q*B+R*C>=T:
print(A+B+(T-P*A-Q*B)//R)
elif P*A+Q*B+R*C+S*D>=T:
print(A+B+C+(T-P*A-Q*B-R*C)//S)
else:
print(A+B+C+D)
nikoro256