結果
| 問題 | No.1046 Fruits Rush |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-12 09:42:15 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 132 bytes |
| 記録 | |
| コンパイル時間 | 235 ms |
| コンパイル使用メモリ | 85,520 KB |
| 実行使用メモリ | 54,224 KB |
| 最終ジャッジ日時 | 2026-03-17 02:51:46 |
| 合計ジャッジ時間 | 1,419 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 WA * 3 |
ソースコード
n,k = map(int,input().split()) an = list(filter(lambda x:x>=0,sorted(list(map(int,input().split()))+[0])[::-1])) print(sum(an[:k]))