結果

問題 No.1453 手助け
ユーザー 👑 rin204rin204
提出日時 2021-08-05 13:06:52
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 229 bytes
コンパイル時間 240 ms
コンパイル使用メモリ 87,012 KB
実行使用メモリ 75,784 KB
最終ジャッジ日時 2023-10-14 21:34:35
合計ジャッジ時間 3,302 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,248 KB
testcase_01 AC 71 ms
71,132 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 77 ms
75,460 KB
testcase_06 WA -
testcase_07 AC 70 ms
75,624 KB
testcase_08 AC 72 ms
71,172 KB
testcase_09 AC 68 ms
70,904 KB
testcase_10 WA -
testcase_11 AC 69 ms
71,228 KB
testcase_12 WA -
testcase_13 AC 71 ms
71,128 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 69 ms
71,228 KB
testcase_17 AC 71 ms
71,356 KB
testcase_18 WA -
testcase_19 AC 72 ms
75,456 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 69 ms
71,008 KB
testcase_23 AC 68 ms
71,136 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 % 1 != 0:
        ans += x
    elif e <= x:
        ans += x - e
        bef = x - e
    else:
        ans += x
print(ans)
0