結果

問題 No.3065 Speedrun (Normal)
コンテスト
ユーザー 2026_kei
提出日時 2026-06-20 16:18:01
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
TLE  
実行時間 -
コード長 348 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 590 ms
コンパイル使用メモリ 20,572 KB
実行使用メモリ 21,504 KB
最終ジャッジ日時 2026-06-20 16:18:22
合計ジャッジ時間 4,881 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 3 TLE * 1 -- * 9
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

a,b,c,d = map(int,input().split())
p,q,r,s,t = map(int,input().split())
count = 0
mondai = [a,b,c,d]
zikann = [p,q,r,s]

for i,j in zip(mondai, zikann):
    if (i * j) <= t:
        count += i
        t -= i * j
    elif (i * j) >= t:
        while t > 0:
            if t - j >= 0:
                count += 1
                t = t - j
print(count)
0