結果

問題 No.1380 Borderline
ユーザー brthyyjpbrthyyjp
提出日時 2021-02-12 11:11:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 81 ms / 2,000 ms
コード長 239 bytes
コンパイル時間 299 ms
コンパイル使用メモリ 87,124 KB
実行使用メモリ 75,620 KB
最終ジャッジ日時 2023-09-26 10:41:35
合計ジャッジ時間 6,793 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,432 KB
testcase_01 AC 74 ms
71,488 KB
testcase_02 AC 76 ms
71,320 KB
testcase_03 AC 78 ms
75,256 KB
testcase_04 AC 79 ms
75,300 KB
testcase_05 AC 76 ms
71,432 KB
testcase_06 AC 75 ms
71,424 KB
testcase_07 AC 74 ms
71,416 KB
testcase_08 AC 77 ms
75,388 KB
testcase_09 AC 78 ms
75,572 KB
testcase_10 AC 77 ms
74,900 KB
testcase_11 AC 79 ms
75,296 KB
testcase_12 AC 74 ms
71,236 KB
testcase_13 AC 78 ms
75,260 KB
testcase_14 AC 79 ms
75,560 KB
testcase_15 AC 80 ms
75,564 KB
testcase_16 AC 79 ms
75,220 KB
testcase_17 AC 80 ms
75,476 KB
testcase_18 AC 79 ms
75,592 KB
testcase_19 AC 81 ms
75,512 KB
testcase_20 AC 78 ms
75,568 KB
testcase_21 AC 79 ms
75,464 KB
testcase_22 AC 79 ms
75,476 KB
testcase_23 AC 79 ms
75,228 KB
testcase_24 AC 76 ms
75,464 KB
testcase_25 AC 79 ms
75,228 KB
testcase_26 AC 78 ms
75,560 KB
testcase_27 AC 77 ms
75,620 KB
testcase_28 AC 79 ms
75,448 KB
testcase_29 AC 80 ms
75,472 KB
testcase_30 AC 78 ms
75,444 KB
testcase_31 AC 78 ms
75,360 KB
testcase_32 AC 78 ms
75,224 KB
testcase_33 AC 79 ms
75,416 KB
testcase_34 AC 80 ms
75,512 KB
testcase_35 AC 81 ms
75,392 KB
testcase_36 AC 80 ms
75,468 KB
testcase_37 AC 79 ms
75,556 KB
testcase_38 AC 80 ms
75,444 KB
testcase_39 AC 80 ms
75,416 KB
testcase_40 AC 79 ms
75,468 KB
testcase_41 AC 78 ms
75,444 KB
testcase_42 AC 81 ms
75,380 KB
testcase_43 AC 79 ms
75,496 KB
testcase_44 AC 76 ms
71,440 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, k = map(int, input().split())
P = list(map(int, input().split()))
P.sort()
import bisect
ans = 0
for b in range(0, 402):
    i = bisect.bisect_left(P, b)
    if n-i > k:
        continue
    else:
        ans = max(ans, n-i)
print(ans)
0