結果

問題 No.1453 手助け
ユーザー NatsubiSoganNatsubiSogan
提出日時 2021-03-31 21:12:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 36 ms / 2,000 ms
コード長 239 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 10,728 KB
実行使用メモリ 9,092 KB
最終ジャッジ日時 2023-08-21 22:04:20
合計ジャッジ時間 2,159 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
9,008 KB
testcase_01 AC 35 ms
9,092 KB
testcase_02 AC 34 ms
8,968 KB
testcase_03 AC 34 ms
8,960 KB
testcase_04 AC 35 ms
8,932 KB
testcase_05 AC 36 ms
8,916 KB
testcase_06 AC 35 ms
9,088 KB
testcase_07 AC 35 ms
9,012 KB
testcase_08 AC 34 ms
9,064 KB
testcase_09 AC 35 ms
9,072 KB
testcase_10 AC 34 ms
9,016 KB
testcase_11 AC 34 ms
8,932 KB
testcase_12 AC 35 ms
9,016 KB
testcase_13 AC 35 ms
8,956 KB
testcase_14 AC 34 ms
9,012 KB
testcase_15 AC 35 ms
8,956 KB
testcase_16 AC 35 ms
8,932 KB
testcase_17 AC 35 ms
8,960 KB
testcase_18 AC 35 ms
9,008 KB
testcase_19 AC 34 ms
9,012 KB
testcase_20 AC 34 ms
9,012 KB
testcase_21 AC 35 ms
8,956 KB
testcase_22 AC 35 ms
8,932 KB
testcase_23 AC 34 ms
8,964 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, c, d, e = map(int, input().split())
num = b - c
l = [d]
for i in range(2, 100000):
    if i % 10 != 0:
        l.append(l[-1])
    else:
        if e <= l[-1]: l.append(l[-1] - e)
        else: l.append(l[-1])
print(sum(l[:num * a]))
0