結果

問題 No.1453 手助け
ユーザー Ryuki87241978Ryuki87241978
提出日時 2022-09-22 03:47:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 338 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 10,500 KB
実行使用メモリ 8,216 KB
最終ジャッジ日時 2023-08-23 20:21:45
合計ジャッジ時間 2,072 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
8,164 KB
testcase_01 AC 16 ms
7,912 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 18 ms
7,852 KB
testcase_06 WA -
testcase_07 AC 16 ms
7,784 KB
testcase_08 AC 16 ms
7,864 KB
testcase_09 AC 16 ms
7,848 KB
testcase_10 WA -
testcase_11 AC 16 ms
7,776 KB
testcase_12 WA -
testcase_13 AC 16 ms
8,152 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 16 ms
7,904 KB
testcase_17 AC 16 ms
7,744 KB
testcase_18 WA -
testcase_19 AC 17 ms
7,784 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 16 ms
7,864 KB
testcase_23 AC 15 ms
8,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,C,D,E = map(int,input().split())
if B-C == 0:
    print(0)
    exit()
B -= C
candy = A * B
ans = 0
for i in range(candy):
    if i+1 == 1:
        ans += D
    else:
        if (i+1)%10 == 0:
            if E <= D:
                ans += (D - E)
            else:
                ans += D
        else:
            ans += D
print(ans)
0