結果

問題 No.1453 手助け
ユーザー 👑 rin204rin204
提出日時 2021-08-05 13:07:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 81 ms / 2,000 ms
コード長 228 bytes
コンパイル時間 333 ms
コンパイル使用メモリ 86,760 KB
実行使用メモリ 75,784 KB
最終ジャッジ日時 2023-10-14 21:34:39
合計ジャッジ時間 3,418 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,316 KB
testcase_01 AC 76 ms
71,080 KB
testcase_02 AC 77 ms
71,252 KB
testcase_03 AC 79 ms
75,700 KB
testcase_04 AC 77 ms
70,896 KB
testcase_05 AC 79 ms
75,552 KB
testcase_06 AC 80 ms
75,784 KB
testcase_07 AC 79 ms
75,764 KB
testcase_08 AC 76 ms
71,444 KB
testcase_09 AC 77 ms
71,088 KB
testcase_10 AC 77 ms
71,248 KB
testcase_11 AC 77 ms
71,080 KB
testcase_12 AC 77 ms
70,896 KB
testcase_13 AC 76 ms
71,084 KB
testcase_14 AC 77 ms
71,284 KB
testcase_15 AC 80 ms
75,568 KB
testcase_16 AC 77 ms
71,140 KB
testcase_17 AC 76 ms
71,144 KB
testcase_18 AC 79 ms
75,528 KB
testcase_19 AC 81 ms
75,704 KB
testcase_20 AC 79 ms
75,704 KB
testcase_21 AC 77 ms
71,052 KB
testcase_22 AC 77 ms
71,372 KB
testcase_23 AC 77 ms
71,268 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, c, d, e = map(int, input().split())
n = a * (b - c)
x = d
ans = 0
for i in range(1, n + 1):
    if i % 10 != 0:
        ans += x
    elif e <= x:
        ans += x - e
        x = x - e
    else:
        ans += x
print(ans)
0