結果
| 問題 | No.3656 Game Scores and Costs |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-30 16:19:30 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 194 bytes |
| 記録 | |
| コンパイル時間 | 306 ms |
| コンパイル使用メモリ | 21,408 KB |
| 実行使用メモリ | 36,868 KB |
| 最終ジャッジ日時 | 2026-08-30 16:19:36 |
| 合計ジャッジ時間 | 4,684 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | TLE * 1 -- * 20 |
ソースコード
N, K, X = map(int, input().split()) A = list(map(int, input().split())) A = sorted(A, reverse=True) def f(i): return sum(A[:min(K, i)]) - X * i N = len(A) print(max(f(i) for i in range(N + 1)))