結果

問題 No.1380 Borderline
ユーザー roarisroaris
提出日時 2022-11-26 15:49:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 235 bytes
コンパイル時間 361 ms
コンパイル使用メモリ 82,892 KB
実行使用メモリ 62,052 KB
最終ジャッジ日時 2024-04-12 10:43:01
合計ジャッジ時間 3,157 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
58,956 KB
testcase_01 AC 33 ms
58,352 KB
testcase_02 AC 33 ms
58,628 KB
testcase_03 AC 33 ms
59,276 KB
testcase_04 AC 36 ms
59,740 KB
testcase_05 AC 31 ms
52,348 KB
testcase_06 AC 34 ms
59,212 KB
testcase_07 AC 35 ms
58,912 KB
testcase_08 AC 36 ms
59,888 KB
testcase_09 AC 36 ms
60,056 KB
testcase_10 AC 35 ms
60,128 KB
testcase_11 AC 37 ms
58,328 KB
testcase_12 AC 35 ms
59,124 KB
testcase_13 AC 37 ms
60,336 KB
testcase_14 AC 38 ms
60,916 KB
testcase_15 AC 39 ms
60,736 KB
testcase_16 AC 44 ms
61,636 KB
testcase_17 AC 42 ms
61,052 KB
testcase_18 AC 40 ms
59,368 KB
testcase_19 AC 40 ms
60,428 KB
testcase_20 AC 40 ms
60,840 KB
testcase_21 AC 37 ms
59,796 KB
testcase_22 AC 38 ms
59,832 KB
testcase_23 AC 38 ms
60,780 KB
testcase_24 AC 38 ms
59,960 KB
testcase_25 AC 39 ms
60,676 KB
testcase_26 AC 37 ms
60,812 KB
testcase_27 AC 39 ms
60,148 KB
testcase_28 AC 39 ms
61,856 KB
testcase_29 AC 40 ms
61,916 KB
testcase_30 AC 39 ms
60,328 KB
testcase_31 AC 37 ms
60,348 KB
testcase_32 AC 36 ms
61,124 KB
testcase_33 AC 38 ms
60,480 KB
testcase_34 AC 39 ms
61,320 KB
testcase_35 AC 40 ms
60,204 KB
testcase_36 AC 39 ms
59,740 KB
testcase_37 AC 39 ms
60,364 KB
testcase_38 AC 43 ms
61,196 KB
testcase_39 AC 40 ms
59,680 KB
testcase_40 AC 40 ms
61,232 KB
testcase_41 AC 40 ms
62,052 KB
testcase_42 AC 41 ms
60,616 KB
testcase_43 AC 40 ms
61,028 KB
testcase_44 AC 36 ms
59,196 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, K = map(int, input().split())
p = list(map(int, input().split()))
ans = 0

for b in range(0, 1000):
    cnt = 0
    
    for pi in p:
        if pi>=b:
            cnt += 1
    
    if cnt<=K:
        ans = max(ans, cnt)

print(ans)
0