結果
| 問題 | No.1046 Fruits Rush |
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2024-08-31 11:08:47 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 2,000 ms |
| コード長 | 132 bytes |
| 記録 | |
| コンパイル時間 | 366 ms |
| コンパイル使用メモリ | 84,840 KB |
| 実行使用メモリ | 53,452 KB |
| 最終ジャッジ日時 | 2026-04-03 23:53:03 |
| 合計ジャッジ時間 | 1,378 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge5_1 |
| 純コード判定待ち |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 |
ソースコード
n,k=map(int,input().split()) a=list(map(int,input().split())) a.sort() c=a[-1] for i in range(1,k): if a[~i]>0: c+=a[~i] print(c)
sasa8uyauya