結果

問題 No.1380 Borderline
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2021-02-07 20:47:10
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 171 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 86,764 KB
実行使用メモリ 78,856 KB
最終ジャッジ日時 2023-09-17 19:33:07
合計ジャッジ時間 5,858 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
70,972 KB
testcase_01 AC 70 ms
71,100 KB
testcase_02 AC 70 ms
70,820 KB
testcase_03 AC 70 ms
70,976 KB
testcase_04 AC 71 ms
71,128 KB
testcase_05 RE -
testcase_06 AC 71 ms
70,844 KB
testcase_07 RE -
testcase_08 AC 71 ms
70,820 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 71 ms
71,036 KB
testcase_12 AC 71 ms
70,980 KB
testcase_13 AC 71 ms
70,816 KB
testcase_14 AC 72 ms
70,708 KB
testcase_15 AC 70 ms
71,012 KB
testcase_16 AC 71 ms
70,820 KB
testcase_17 AC 72 ms
70,980 KB
testcase_18 AC 71 ms
70,988 KB
testcase_19 AC 70 ms
71,048 KB
testcase_20 AC 72 ms
71,012 KB
testcase_21 AC 72 ms
70,976 KB
testcase_22 AC 72 ms
71,072 KB
testcase_23 AC 74 ms
71,008 KB
testcase_24 AC 72 ms
70,840 KB
testcase_25 AC 72 ms
71,012 KB
testcase_26 AC 73 ms
70,904 KB
testcase_27 AC 73 ms
71,088 KB
testcase_28 AC 73 ms
70,900 KB
testcase_29 AC 73 ms
70,980 KB
testcase_30 AC 72 ms
70,808 KB
testcase_31 AC 71 ms
71,024 KB
testcase_32 AC 71 ms
71,036 KB
testcase_33 AC 73 ms
71,012 KB
testcase_34 AC 72 ms
70,900 KB
testcase_35 AC 74 ms
71,028 KB
testcase_36 AC 71 ms
70,936 KB
testcase_37 AC 71 ms
71,132 KB
testcase_38 AC 71 ms
71,176 KB
testcase_39 AC 71 ms
70,708 KB
testcase_40 AC 69 ms
70,896 KB
testcase_41 AC 70 ms
71,148 KB
testcase_42 AC 73 ms
71,236 KB
testcase_43 AC 72 ms
71,004 KB
testcase_44 RE -
権限があれば一括ダウンロードができます

ソースコード

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