結果

問題 No.1380 Borderline
ユーザー zyxw
提出日時 2021-02-11 16:50:34
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 228 bytes
コンパイル時間 200 ms
コンパイル使用メモリ 82,372 KB
実行使用メモリ 66,960 KB
最終ジャッジ日時 2024-07-18 05:26:33
合計ジャッジ時間 3,431 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_set=sorted(list(set(p)))[::-1]
p_new={}
for i in p_set:
    p_new[i]=p.count(i)
num=0
i=0
while num+p_new[p_set[i]]<=K:
    num+=p_new[p_set[i]]
    i+=1
print(num)
0