結果

問題 No.2150 Site Supporter
ユーザー first_vilfirst_vil
提出日時 2022-12-09 11:39:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 107 ms / 2,000 ms
コード長 168 bytes
コンパイル時間 324 ms
コンパイル使用メモリ 82,580 KB
実行使用メモリ 107,004 KB
最終ジャッジ日時 2024-04-22 19:03:27
合計ジャッジ時間 2,963 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,320 KB
testcase_01 AC 37 ms
53,200 KB
testcase_02 AC 38 ms
52,700 KB
testcase_03 AC 37 ms
52,240 KB
testcase_04 AC 37 ms
52,672 KB
testcase_05 AC 39 ms
52,396 KB
testcase_06 AC 37 ms
52,688 KB
testcase_07 AC 38 ms
51,940 KB
testcase_08 AC 57 ms
77,988 KB
testcase_09 AC 104 ms
103,940 KB
testcase_10 AC 77 ms
88,528 KB
testcase_11 AC 95 ms
100,680 KB
testcase_12 AC 66 ms
84,156 KB
testcase_13 AC 58 ms
79,116 KB
testcase_14 AC 36 ms
53,352 KB
testcase_15 AC 36 ms
52,112 KB
testcase_16 AC 37 ms
52,684 KB
testcase_17 AC 107 ms
107,004 KB
testcase_18 AC 72 ms
85,452 KB
testcase_19 AC 57 ms
77,304 KB
testcase_20 AC 84 ms
94,900 KB
testcase_21 AC 51 ms
72,368 KB
testcase_22 AC 101 ms
104,412 KB
testcase_23 AC 37 ms
52,268 KB
testcase_24 AC 37 ms
52,820 KB
testcase_25 AC 37 ms
53,136 KB
testcase_26 AC 37 ms
52,340 KB
testcase_27 AC 76 ms
90,496 KB
testcase_28 AC 75 ms
90,452 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k,x=map(int,input().split())
INF=float("inf")
dp=[0,INF]
for a in list(map(int,input().split())):
    nxt=[min(dp)+a,min(dp[0]+k+x,dp[1]+k)]
    dp=nxt
print(min(dp))
0