結果
問題 |
No.1046 Fruits Rush
|
ユーザー |
|
提出日時 | 2022-02-11 12:09:53 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 121 bytes |
コンパイル時間 | 487 ms |
コンパイル使用メモリ | 82,100 KB |
実行使用メモリ | 53,856 KB |
最終ジャッジ日時 | 2024-06-27 06:12:57 |
合計ジャッジ時間 | 1,661 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 WA * 3 |
ソースコード
n,k = map(int,input().split()) an = list(filter(lambda x:x>0,sorted(map(int,input().split()))[::-1])) print(sum(an[:k]))