結果

問題 No.1380 Borderline
ユーザー vwxyz
提出日時 2022-09-06 17:31:35
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 201 bytes
コンパイル時間 136 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-11-21 18:27:53
合計ジャッジ時間 2,981 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 36 RE * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
readline=sys.stdin.readline
write=sys.stdout.write

N,K=map(int,readline().split())
P=list(map(int,readline().split()))
P.sort(reverse=True)
B=P[K]+1
ans=sum(1 for p in P if p>=B)
print(ans)
0