結果

問題 No.1380 Borderline
ユーザー MitarushiMitarushi
提出日時 2021-02-05 21:46:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 90 ms / 2,000 ms
コード長 201 bytes
コンパイル時間 430 ms
コンパイル使用メモリ 86,896 KB
実行使用メモリ 76,492 KB
最終ジャッジ日時 2023-09-19 04:17:39
合計ジャッジ時間 6,222 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
75,596 KB
testcase_01 AC 80 ms
75,816 KB
testcase_02 AC 84 ms
75,796 KB
testcase_03 AC 82 ms
75,764 KB
testcase_04 AC 83 ms
75,792 KB
testcase_05 AC 77 ms
71,280 KB
testcase_06 AC 78 ms
70,928 KB
testcase_07 AC 81 ms
75,912 KB
testcase_08 AC 86 ms
75,928 KB
testcase_09 AC 84 ms
75,800 KB
testcase_10 AC 79 ms
75,564 KB
testcase_11 AC 80 ms
75,996 KB
testcase_12 AC 76 ms
71,072 KB
testcase_13 AC 83 ms
75,812 KB
testcase_14 AC 85 ms
76,036 KB
testcase_15 AC 90 ms
75,676 KB
testcase_16 AC 85 ms
75,908 KB
testcase_17 AC 83 ms
76,036 KB
testcase_18 AC 81 ms
75,920 KB
testcase_19 AC 83 ms
75,668 KB
testcase_20 AC 82 ms
75,848 KB
testcase_21 AC 83 ms
75,852 KB
testcase_22 AC 82 ms
75,676 KB
testcase_23 AC 86 ms
76,388 KB
testcase_24 AC 82 ms
75,964 KB
testcase_25 AC 82 ms
75,940 KB
testcase_26 AC 84 ms
75,676 KB
testcase_27 AC 82 ms
75,960 KB
testcase_28 AC 82 ms
75,940 KB
testcase_29 AC 81 ms
75,988 KB
testcase_30 AC 81 ms
76,028 KB
testcase_31 AC 83 ms
75,996 KB
testcase_32 AC 82 ms
75,824 KB
testcase_33 AC 83 ms
76,136 KB
testcase_34 AC 82 ms
75,980 KB
testcase_35 AC 83 ms
75,680 KB
testcase_36 AC 84 ms
76,492 KB
testcase_37 AC 81 ms
76,116 KB
testcase_38 AC 80 ms
75,848 KB
testcase_39 AC 85 ms
75,748 KB
testcase_40 AC 85 ms
75,804 KB
testcase_41 AC 86 ms
75,912 KB
testcase_42 AC 85 ms
75,916 KB
testcase_43 AC 86 ms
76,208 KB
testcase_44 AC 83 ms
75,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, k = map(int, input().split())
p = [int(i) for i in input().split()]

ans = 0
for b in range(402):
    s = 0
    for i in p:
        s += (i >= b)
    if s <= k:
        ans = max(ans, s)
print(ans)
0