結果

問題 No.1046 Fruits Rush
ユーザー pypypymipypypymi
提出日時 2022-02-12 09:42:15
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 132 bytes
コンパイル時間 1,178 ms
コンパイル使用メモリ 86,420 KB
実行使用メモリ 71,428 KB
最終ジャッジ日時 2023-09-10 20:14:13
合計ジャッジ時間 3,629 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,336 KB
testcase_01 AC 71 ms
71,208 KB
testcase_02 AC 71 ms
71,428 KB
testcase_03 AC 72 ms
71,052 KB
testcase_04 AC 72 ms
71,204 KB
testcase_05 AC 72 ms
71,336 KB
testcase_06 AC 70 ms
71,044 KB
testcase_07 AC 70 ms
71,340 KB
testcase_08 AC 70 ms
71,236 KB
testcase_09 AC 70 ms
71,412 KB
testcase_10 AC 70 ms
71,144 KB
testcase_11 AC 71 ms
71,124 KB
testcase_12 AC 71 ms
71,280 KB
testcase_13 AC 71 ms
71,344 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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]))
0