結果

問題 No.2150 Site Supporter
ユーザー Kude
提出日時 2022-12-07 00:02:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 106 ms / 2,000 ms
コード長 165 bytes
コンパイル時間 1,516 ms
コンパイル使用メモリ 81,536 KB
実行使用メモリ 100,736 KB
最終ジャッジ日時 2024-10-13 11:12:54
合計ジャッジ時間 3,506 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

n, k, x = map(int, input().split())
INF = 10 ** 18
dp = [0, INF]
for a in map(int, input().split()):
    dp = [min(dp) + a, min(dp[0] + x, dp[1]) + k]
print(min(dp))
0