結果

問題 No.1046 Fruits Rush
ユーザー harurun
提出日時 2021-02-05 01:50:45
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 34 ms / 2,000 ms
コード長 126 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-07-01 06:32:11
合計ジャッジ時間 1,322 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.py:1: SyntaxWarning: invalid decimal literal
  N,K,*A=map(int,open(0).read().split());print(max(A)if max(A)<0else sum(sorted(list(filter(lambda x:x>0,A)),reverse=True)[:K]))

ソースコード

diff #

N,K,*A=map(int,open(0).read().split());print(max(A)if max(A)<0else sum(sorted(list(filter(lambda x:x>0,A)),reverse=True)[:K]))
0