結果

問題 No.1380 Borderline
ユーザー O2MTO2MT
提出日時 2021-02-08 00:41:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 233 bytes
コンパイル時間 1,900 ms
コンパイル使用メモリ 86,900 KB
実行使用メモリ 76,424 KB
最終ジャッジ日時 2023-09-19 04:37:46
合計ジャッジ時間 6,368 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,328 KB
testcase_01 AC 73 ms
71,296 KB
testcase_02 AC 75 ms
71,456 KB
testcase_03 AC 74 ms
71,292 KB
testcase_04 AC 81 ms
75,760 KB
testcase_05 AC 74 ms
71,120 KB
testcase_06 AC 74 ms
71,140 KB
testcase_07 AC 77 ms
75,920 KB
testcase_08 AC 80 ms
75,940 KB
testcase_09 AC 79 ms
76,076 KB
testcase_10 AC 79 ms
75,612 KB
testcase_11 AC 78 ms
76,084 KB
testcase_12 AC 75 ms
71,308 KB
testcase_13 AC 77 ms
75,880 KB
testcase_14 AC 80 ms
75,712 KB
testcase_15 AC 80 ms
76,012 KB
testcase_16 AC 80 ms
75,996 KB
testcase_17 AC 82 ms
76,152 KB
testcase_18 AC 80 ms
76,020 KB
testcase_19 AC 79 ms
75,864 KB
testcase_20 AC 84 ms
76,024 KB
testcase_21 AC 82 ms
75,756 KB
testcase_22 AC 81 ms
75,936 KB
testcase_23 AC 81 ms
76,028 KB
testcase_24 AC 81 ms
76,020 KB
testcase_25 AC 80 ms
76,068 KB
testcase_26 AC 80 ms
75,756 KB
testcase_27 AC 80 ms
76,068 KB
testcase_28 AC 81 ms
76,072 KB
testcase_29 AC 81 ms
76,020 KB
testcase_30 AC 82 ms
76,024 KB
testcase_31 AC 81 ms
75,868 KB
testcase_32 AC 80 ms
76,068 KB
testcase_33 AC 80 ms
76,056 KB
testcase_34 AC 81 ms
75,764 KB
testcase_35 AC 81 ms
75,760 KB
testcase_36 AC 85 ms
76,424 KB
testcase_37 AC 81 ms
76,004 KB
testcase_38 AC 79 ms
76,028 KB
testcase_39 AC 83 ms
76,176 KB
testcase_40 AC 83 ms
75,912 KB
testcase_41 AC 82 ms
76,176 KB
testcase_42 AC 83 ms
75,980 KB
testcase_43 AC 83 ms
76,212 KB
testcase_44 AC 73 ms
71,336 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,input().split())
P = list(map(int,input().split()))

ans = 0

for B in range(max(P)+2):
    count = 0
    for p in P:
        if p >= B:
            count += 1
    if count <= K:
        ans = max(ans,count)

print(ans)
0