結果
| 問題 |
No.2150 Site Supporter
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2022-11-18 14:16:15 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 265 bytes |
| コンパイル時間 | 290 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 107,648 KB |
| 最終ジャッジ日時 | 2024-10-13 10:50:14 |
| 合計ジャッジ時間 | 2,963 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 3 WA * 23 |
ソースコード
#嘘貪欲
N,K,X=map(int,input().split())
G=list(map(int,input().split()))
a=0
t=0
for i in G:
if t==1:
if i > K + X:
a=a+K+X
t=1
else:
a=a+i
t=0
else:
if i > K:
a=a+K
t=1
else:
a=a+i
t=0
print(a)