結果

問題 No.740 幻の木
ユーザー severrabaenseverrabaen
提出日時 2019-01-14 20:30:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 213 ms / 2,000 ms
コード長 248 bytes
コンパイル時間 251 ms
コンパイル使用メモリ 10,644 KB
実行使用メモリ 7,856 KB
最終ジャッジ日時 2023-09-05 04:50:12
合計ジャッジ時間 1,673 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,776 KB
testcase_01 AC 16 ms
7,840 KB
testcase_02 AC 16 ms
7,800 KB
testcase_03 AC 16 ms
7,776 KB
testcase_04 AC 16 ms
7,852 KB
testcase_05 AC 16 ms
7,856 KB
testcase_06 AC 213 ms
7,756 KB
testcase_07 AC 15 ms
7,828 KB
testcase_08 AC 16 ms
7,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, c, d = map(int, input().split())
ls = [b for i in range(12)]
for i in range(c,c+d,1):
    ls[i-1] = b*2
ans = 0
while a > 0:
    for i in ls:
        if a > 0:
            a -= i
            ans += 1
        else:
            break
print(ans)
0