結果

問題 No.1453 手助け
ユーザー rin204
提出日時 2021-08-05 13:06:52
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 229 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 57,984 KB
最終ジャッジ日時 2024-09-16 15:19:19
合計ジャッジ時間 2,089 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10 WA * 11
権限があれば一括ダウンロードができます

ソースコード

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