結果

問題 No.1380 Borderline
ユーザー lllllll88938494lllllll88938494
提出日時 2022-01-12 22:41:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 50 ms / 2,000 ms
コード長 221 bytes
コンパイル時間 233 ms
コンパイル使用メモリ 82,500 KB
実行使用メモリ 60,036 KB
最終ジャッジ日時 2024-04-27 13:05:35
合計ジャッジ時間 3,308 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
52,736 KB
testcase_01 AC 41 ms
52,988 KB
testcase_02 AC 41 ms
53,556 KB
testcase_03 AC 46 ms
58,056 KB
testcase_04 AC 50 ms
59,080 KB
testcase_05 AC 43 ms
53,052 KB
testcase_06 AC 40 ms
52,556 KB
testcase_07 AC 42 ms
53,480 KB
testcase_08 AC 41 ms
52,348 KB
testcase_09 AC 43 ms
59,004 KB
testcase_10 AC 43 ms
57,480 KB
testcase_11 AC 41 ms
52,436 KB
testcase_12 AC 40 ms
52,864 KB
testcase_13 AC 40 ms
52,560 KB
testcase_14 AC 45 ms
58,724 KB
testcase_15 AC 43 ms
57,520 KB
testcase_16 AC 44 ms
57,788 KB
testcase_17 AC 43 ms
58,188 KB
testcase_18 AC 45 ms
58,128 KB
testcase_19 AC 40 ms
53,716 KB
testcase_20 AC 42 ms
58,080 KB
testcase_21 AC 45 ms
58,804 KB
testcase_22 AC 45 ms
59,132 KB
testcase_23 AC 45 ms
58,264 KB
testcase_24 AC 45 ms
59,660 KB
testcase_25 AC 39 ms
53,040 KB
testcase_26 AC 45 ms
60,036 KB
testcase_27 AC 40 ms
52,528 KB
testcase_28 AC 43 ms
58,264 KB
testcase_29 AC 45 ms
58,660 KB
testcase_30 AC 40 ms
53,692 KB
testcase_31 AC 43 ms
59,072 KB
testcase_32 AC 39 ms
53,472 KB
testcase_33 AC 44 ms
58,852 KB
testcase_34 AC 40 ms
52,872 KB
testcase_35 AC 45 ms
59,708 KB
testcase_36 AC 43 ms
58,452 KB
testcase_37 AC 44 ms
59,836 KB
testcase_38 AC 40 ms
52,404 KB
testcase_39 AC 45 ms
58,776 KB
testcase_40 AC 44 ms
58,612 KB
testcase_41 AC 41 ms
53,872 KB
testcase_42 AC 44 ms
58,012 KB
testcase_43 AC 43 ms
59,596 KB
testcase_44 AC 40 ms
54,204 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from bisect import bisect_left as bl

n,k = map(int,input().split())
ns=list(map(int,input().split()))
ns.sort()
ans=0
for i in range(400,-1,-1):
    t=n-bl(ns,i)
    if t > k:
        break
    ans=t
    
print(ans)




0