結果

問題 No.1453 手助け
ユーザー ああいいああいい
提出日時 2022-05-21 20:47:43
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 217 bytes
コンパイル時間 145 ms
コンパイル使用メモリ 81,892 KB
実行使用メモリ 59,728 KB
最終ジャッジ日時 2023-10-20 16:37:50
合計ジャッジ時間 1,872 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 38 ms
53,556 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 37 ms
59,660 KB
testcase_06 WA -
testcase_07 AC 36 ms
57,492 KB
testcase_08 AC 33 ms
53,556 KB
testcase_09 AC 33 ms
53,556 KB
testcase_10 WA -
testcase_11 AC 33 ms
53,556 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 36 ms
53,556 KB
testcase_17 AC 36 ms
53,556 KB
testcase_18 WA -
testcase_19 AC 37 ms
59,660 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 35 ms
53,556 KB
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c,d,e = map(int,input().split())

num = a * (b - c)
ans = d
now = d
for i in range(2,num + 1):
    if i % 10 != 0:
        ans += d
    else:
        if now >= e:
            now -= e
        ans += now
print(ans)
0