結果

問題 No.1380 Borderline
ユーザー zyxwzyxw
提出日時 2021-02-11 16:50:34
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 228 bytes
コンパイル時間 1,795 ms
コンパイル使用メモリ 86,424 KB
実行使用メモリ 78,856 KB
最終ジャッジ日時 2023-09-25 06:28:49
合計ジャッジ時間 6,277 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,312 KB
testcase_01 AC 68 ms
71,432 KB
testcase_02 AC 69 ms
71,168 KB
testcase_03 AC 66 ms
71,396 KB
testcase_04 AC 70 ms
71,432 KB
testcase_05 RE -
testcase_06 AC 68 ms
71,248 KB
testcase_07 RE -
testcase_08 AC 69 ms
71,448 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 68 ms
71,132 KB
testcase_12 AC 69 ms
71,108 KB
testcase_13 AC 69 ms
71,084 KB
testcase_14 AC 72 ms
71,104 KB
testcase_15 AC 69 ms
71,144 KB
testcase_16 AC 69 ms
71,508 KB
testcase_17 AC 68 ms
71,184 KB
testcase_18 AC 69 ms
71,240 KB
testcase_19 AC 68 ms
71,148 KB
testcase_20 AC 68 ms
71,244 KB
testcase_21 AC 69 ms
71,248 KB
testcase_22 AC 70 ms
71,352 KB
testcase_23 AC 71 ms
71,144 KB
testcase_24 AC 69 ms
71,016 KB
testcase_25 AC 68 ms
71,224 KB
testcase_26 AC 67 ms
71,008 KB
testcase_27 AC 68 ms
71,472 KB
testcase_28 AC 68 ms
71,148 KB
testcase_29 AC 68 ms
71,112 KB
testcase_30 AC 68 ms
71,008 KB
testcase_31 AC 70 ms
71,052 KB
testcase_32 AC 69 ms
71,008 KB
testcase_33 AC 68 ms
71,004 KB
testcase_34 AC 68 ms
71,480 KB
testcase_35 AC 67 ms
71,240 KB
testcase_36 AC 68 ms
71,452 KB
testcase_37 AC 68 ms
71,144 KB
testcase_38 AC 67 ms
71,104 KB
testcase_39 AC 67 ms
71,564 KB
testcase_40 AC 67 ms
71,136 KB
testcase_41 AC 71 ms
71,244 KB
testcase_42 AC 69 ms
71,244 KB
testcase_43 AC 69 ms
70,908 KB
testcase_44 RE -
権限があれば一括ダウンロードができます

ソースコード

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