結果

問題 No.1453 手助け
ユーザー otsunekootsuneko
提出日時 2021-05-14 12:55:10
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 262 bytes
コンパイル時間 250 ms
コンパイル使用メモリ 82,216 KB
実行使用メモリ 60,724 KB
最終ジャッジ日時 2024-04-09 18:14:21
合計ジャッジ時間 2,251 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,812 KB
testcase_01 AC 41 ms
52,236 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 41 ms
58,644 KB
testcase_06 WA -
testcase_07 AC 42 ms
59,832 KB
testcase_08 AC 36 ms
53,120 KB
testcase_09 AC 39 ms
52,728 KB
testcase_10 WA -
testcase_11 AC 36 ms
51,948 KB
testcase_12 WA -
testcase_13 AC 36 ms
52,972 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 36 ms
52,312 KB
testcase_17 AC 37 ms
53,584 KB
testcase_18 WA -
testcase_19 AC 42 ms
59,980 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 37 ms
52,068 KB
testcase_23 AC 37 ms
52,252 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,C,D,E = map(int,input().split())

guest = B-C
candy = A*(B-C)

ans = 0
cost = D
for i in range(candy):
    if i == 0:
        ans += cost
    else:
        cost = cost-E if i%10 == 0 and E <= cost else cost 
        ans += cost
print(ans)       
0