結果
問題 |
No.1046 Fruits Rush
|
ユーザー |
![]() |
提出日時 | 2024-04-30 14:30:10 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 164 bytes |
コンパイル時間 | 88 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-20 09:57:24 |
合計ジャッジ時間 | 1,439 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 14 |
ソースコード
n,k = map(int,input().split()) ls = list(map(int,input().split())) s = 0 for i in range(ls): if ls[i] <= 0: ls[i] = 0 ls.sort(reverse=True) print(sum(ls[:k]))