結果
| 問題 | No.3656 Game Scores and Costs |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-30 21:35:28 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 252 bytes |
| 記録 | |
| コンパイル時間 | 235 ms |
| コンパイル使用メモリ | 96,212 KB |
| 実行使用メモリ | 91,472 KB |
| 最終ジャッジ日時 | 2026-08-30 21:35:35 |
| 合計ジャッジ時間 | 5,489 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 21 |
ソースコード
from sortedcontainers import SortedList N, K, X = map(int, input().split()) A = list(map(int, input().split())) sl = SortedList() ret = [] for i in range(N): sl.add(-A[i]) val = -sum(sl[:min(i+1, K)]) - X * (i+1) ret.append(val) print(min(ret))