結果

問題 No.1380 Borderline
ユーザー HAGI_TAROHAGI_TARO
提出日時 2021-09-23 08:55:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 227 bytes
コンパイル時間 463 ms
コンパイル使用メモリ 87,020 KB
実行使用メモリ 76,500 KB
最終ジャッジ日時 2023-09-18 19:49:34
合計ジャッジ時間 5,698 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
76,076 KB
testcase_01 AC 81 ms
76,196 KB
testcase_02 AC 81 ms
76,100 KB
testcase_03 AC 84 ms
76,028 KB
testcase_04 AC 83 ms
76,124 KB
testcase_05 AC 79 ms
71,084 KB
testcase_06 AC 78 ms
71,492 KB
testcase_07 AC 82 ms
76,352 KB
testcase_08 AC 84 ms
76,468 KB
testcase_09 AC 81 ms
76,020 KB
testcase_10 AC 82 ms
75,652 KB
testcase_11 AC 84 ms
76,068 KB
testcase_12 AC 79 ms
71,288 KB
testcase_13 AC 83 ms
75,776 KB
testcase_14 AC 86 ms
76,348 KB
testcase_15 AC 86 ms
76,140 KB
testcase_16 AC 86 ms
76,396 KB
testcase_17 AC 86 ms
76,256 KB
testcase_18 AC 84 ms
76,420 KB
testcase_19 AC 83 ms
76,184 KB
testcase_20 AC 86 ms
76,356 KB
testcase_21 AC 84 ms
76,280 KB
testcase_22 AC 85 ms
76,384 KB
testcase_23 AC 85 ms
75,788 KB
testcase_24 AC 84 ms
76,144 KB
testcase_25 AC 83 ms
76,272 KB
testcase_26 AC 84 ms
76,256 KB
testcase_27 AC 84 ms
76,176 KB
testcase_28 AC 84 ms
76,336 KB
testcase_29 AC 83 ms
76,432 KB
testcase_30 AC 84 ms
76,176 KB
testcase_31 AC 85 ms
76,036 KB
testcase_32 AC 85 ms
76,312 KB
testcase_33 AC 85 ms
76,216 KB
testcase_34 AC 86 ms
76,396 KB
testcase_35 AC 86 ms
76,236 KB
testcase_36 AC 85 ms
75,960 KB
testcase_37 AC 83 ms
76,060 KB
testcase_38 AC 83 ms
76,048 KB
testcase_39 AC 83 ms
76,240 KB
testcase_40 AC 83 ms
76,288 KB
testcase_41 AC 87 ms
76,240 KB
testcase_42 AC 82 ms
76,500 KB
testcase_43 AC 86 ms
75,924 KB
testcase_44 AC 81 ms
75,960 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k = map(int,input().split())
P = list(map(int,input().split()))
ans = 0
for i in range(401):
    cnt = 0
    for j in range(n):
        if P[j] >= i:
            cnt += 1
    if cnt <= k:
        ans = max(ans,cnt)
print(ans)
0