結果
| 問題 |
No.1046 Fruits Rush
|
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2024-08-31 11:07:19 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 141 bytes |
| コンパイル時間 | 410 ms |
| コンパイル使用メモリ | 82,096 KB |
| 実行使用メモリ | 53,916 KB |
| 最終ジャッジ日時 | 2024-08-31 11:07:22 |
| 合計ジャッジ時間 | 1,583 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 WA * 3 |
ソースコード
n,k=map(int,input().split()) a=list(map(int,input().split())) a.sort() c=0 for i in range(n): if a[~i]>0 and k>0: c+=a[~i] k-=1 print(c)
sasa8uyauya