結果

問題 No.1453 手助け
ユーザー otsunekootsuneko
提出日時 2021-05-14 12:58:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 191 bytes
コンパイル時間 247 ms
コンパイル使用メモリ 82,480 KB
実行使用メモリ 59,428 KB
最終ジャッジ日時 2024-04-09 18:16:57
合計ジャッジ時間 2,150 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,344 KB
testcase_01 AC 37 ms
53,748 KB
testcase_02 AC 37 ms
52,424 KB
testcase_03 AC 41 ms
58,616 KB
testcase_04 AC 38 ms
52,408 KB
testcase_05 AC 42 ms
59,428 KB
testcase_06 AC 41 ms
58,420 KB
testcase_07 AC 40 ms
58,744 KB
testcase_08 AC 37 ms
52,872 KB
testcase_09 AC 38 ms
52,584 KB
testcase_10 AC 37 ms
52,892 KB
testcase_11 AC 37 ms
52,480 KB
testcase_12 AC 37 ms
52,684 KB
testcase_13 AC 37 ms
52,756 KB
testcase_14 AC 37 ms
53,012 KB
testcase_15 AC 41 ms
58,496 KB
testcase_16 AC 37 ms
53,688 KB
testcase_17 AC 38 ms
52,208 KB
testcase_18 AC 40 ms
57,792 KB
testcase_19 AC 41 ms
58,360 KB
testcase_20 AC 41 ms
58,616 KB
testcase_21 AC 38 ms
52,692 KB
testcase_22 AC 37 ms
52,452 KB
testcase_23 AC 37 ms
52,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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

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