結果

問題 No.1380 Borderline
ユーザー gorugo30gorugo30
提出日時 2021-02-07 20:36:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 229 bytes
コンパイル時間 563 ms
コンパイル使用メモリ 87,164 KB
実行使用メモリ 75,448 KB
最終ジャッジ日時 2023-09-19 04:28:23
合計ジャッジ時間 6,126 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
74,960 KB
testcase_01 AC 85 ms
74,796 KB
testcase_02 AC 84 ms
75,024 KB
testcase_03 AC 85 ms
74,964 KB
testcase_04 AC 87 ms
75,048 KB
testcase_05 AC 78 ms
70,840 KB
testcase_06 AC 82 ms
74,664 KB
testcase_07 AC 81 ms
75,120 KB
testcase_08 AC 81 ms
74,884 KB
testcase_09 AC 81 ms
75,112 KB
testcase_10 AC 83 ms
75,052 KB
testcase_11 AC 81 ms
75,020 KB
testcase_12 AC 77 ms
71,292 KB
testcase_13 AC 81 ms
75,368 KB
testcase_14 AC 83 ms
75,148 KB
testcase_15 AC 85 ms
75,116 KB
testcase_16 AC 86 ms
75,364 KB
testcase_17 AC 82 ms
74,960 KB
testcase_18 AC 85 ms
75,132 KB
testcase_19 AC 84 ms
75,364 KB
testcase_20 AC 87 ms
75,364 KB
testcase_21 AC 84 ms
74,948 KB
testcase_22 AC 83 ms
75,056 KB
testcase_23 AC 85 ms
75,116 KB
testcase_24 AC 86 ms
75,140 KB
testcase_25 AC 83 ms
75,052 KB
testcase_26 AC 82 ms
74,984 KB
testcase_27 AC 85 ms
75,180 KB
testcase_28 AC 83 ms
75,312 KB
testcase_29 AC 87 ms
74,952 KB
testcase_30 AC 83 ms
75,448 KB
testcase_31 AC 84 ms
75,152 KB
testcase_32 AC 85 ms
75,072 KB
testcase_33 AC 84 ms
75,268 KB
testcase_34 AC 83 ms
75,148 KB
testcase_35 AC 81 ms
75,224 KB
testcase_36 AC 81 ms
75,152 KB
testcase_37 AC 81 ms
75,084 KB
testcase_38 AC 82 ms
75,036 KB
testcase_39 AC 83 ms
75,060 KB
testcase_40 AC 83 ms
75,184 KB
testcase_41 AC 82 ms
74,820 KB
testcase_42 AC 82 ms
75,060 KB
testcase_43 AC 85 ms
75,056 KB
testcase_44 AC 80 ms
74,976 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, K = map(int, input().split())
P = list(map(int, input().split()))
from bisect import bisect_left
P.sort()
ans = 0
for B in range(401):
    if N - bisect_left(P, B) <= K:
        ans = max(ans, N - bisect_left(P, B))
print(ans)
0