結果

問題 No.1380 Borderline
ユーザー 👑 SPD_9X2
提出日時 2021-02-07 20:47:10
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 171 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 82,540 KB
実行使用メモリ 67,084 KB
最終ジャッジ日時 2024-07-04 13:50:49
合計ジャッジ時間 3,228 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 36 RE * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,input().split())

p = list(map(int,input().split()))
p.sort()
p.reverse()

now = K-1

while now >= 0 and p[now+1] == p[now]:
    now -= 1

print (now + 1)

0