結果
| 問題 | No.1046 Fruits Rush |
| コンテスト | |
| ユーザー |
reforefo2
|
| 提出日時 | 2020-05-09 18:47:06 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 242 bytes |
| 記録 | |
| コンパイル時間 | 280 ms |
| コンパイル使用メモリ | 21,536 KB |
| 実行使用メモリ | 15,996 KB |
| 最終ジャッジ日時 | 2026-08-08 22:51:47 |
| 合計ジャッジ時間 | 3,153 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 14 |
ソースコード
N, K = map(int, input().split())
List = list(map(int,input().split()))
value = 0
List.sort(reverse = True)
print(List)
if max(List) < 0:
value = max(List)
for i in range(K):
if List[i] > 0:
value += int(List[i])
print(value)
reforefo2