結果

問題 No.1380 Borderline
コンテスト
ユーザー zyxw
提出日時 2021-02-11 16:50:34
言語 PyPy3
(7.3.23)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
RE  
実行時間 -
コード長 228 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 235 ms
コンパイル使用メモリ 96,240 KB
実行使用メモリ 90,880 KB
最終ジャッジ日時 2026-08-16 12:35:05
合計ジャッジ時間 5,733 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 36 RE * 5
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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