結果
| 問題 | No.1046 Fruits Rush |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-12 09:46:18 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 182 bytes |
| 記録 | |
| コンパイル時間 | 2,024 ms |
| コンパイル使用メモリ | 81,668 KB |
| 実行使用メモリ | 52,408 KB |
| 最終ジャッジ日時 | 2024-06-28 11:23:39 |
| 合計ジャッジ時間 | 1,607 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 12 WA * 2 |
ソースコード
n,k = map(int,input().split())
an = sorted(list(map(int,input().split())))[::-1]
count = an[0]
for i in range(1,len(an)):
if an[i]<0:break
else:count+=an[i]
print(count)