結果

問題 No.1380 Borderline
ユーザー TnaTna
提出日時 2022-07-13 14:14:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 400 bytes
コンパイル時間 113 ms
コンパイル使用メモリ 10,812 KB
実行使用メモリ 8,452 KB
最終ジャッジ日時 2023-09-06 23:23:56
合計ジャッジ時間 7,052 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
8,352 KB
testcase_01 AC 23 ms
8,252 KB
testcase_02 WA -
testcase_03 AC 25 ms
8,272 KB
testcase_04 AC 25 ms
8,416 KB
testcase_05 AC 20 ms
8,276 KB
testcase_06 AC 20 ms
8,328 KB
testcase_07 AC 22 ms
8,284 KB
testcase_08 WA -
testcase_09 AC 23 ms
8,344 KB
testcase_10 AC 24 ms
8,300 KB
testcase_11 AC 22 ms
8,256 KB
testcase_12 AC 20 ms
8,224 KB
testcase_13 AC 24 ms
8,396 KB
testcase_14 AC 151 ms
8,284 KB
testcase_15 AC 148 ms
8,444 KB
testcase_16 AC 149 ms
8,356 KB
testcase_17 AC 150 ms
8,448 KB
testcase_18 AC 148 ms
8,312 KB
testcase_19 WA -
testcase_20 AC 150 ms
8,236 KB
testcase_21 AC 157 ms
8,452 KB
testcase_22 AC 156 ms
8,316 KB
testcase_23 AC 164 ms
8,292 KB
testcase_24 AC 144 ms
8,304 KB
testcase_25 AC 158 ms
8,232 KB
testcase_26 AC 160 ms
8,288 KB
testcase_27 AC 144 ms
8,416 KB
testcase_28 AC 143 ms
8,288 KB
testcase_29 AC 144 ms
8,360 KB
testcase_30 AC 146 ms
8,412 KB
testcase_31 AC 145 ms
8,424 KB
testcase_32 AC 160 ms
8,244 KB
testcase_33 AC 159 ms
8,396 KB
testcase_34 AC 147 ms
8,252 KB
testcase_35 AC 157 ms
8,300 KB
testcase_36 AC 148 ms
8,396 KB
testcase_37 AC 154 ms
8,360 KB
testcase_38 AC 164 ms
8,408 KB
testcase_39 AC 146 ms
8,352 KB
testcase_40 AC 155 ms
8,256 KB
testcase_41 AC 144 ms
8,400 KB
testcase_42 AC 157 ms
8,260 KB
testcase_43 AC 146 ms
8,264 KB
testcase_44 AC 23 ms
8,396 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, K = [int(x) for x in input().split()]
results = [int(x) for x in input().split()]

passer = []
for b in range(1, 10000):
    counter = 0
    for x in results:
        if x >= b:
            counter += 1
    passer.append(counter)

# print(passer)
passer = [x for x in passer if x <= K]
# print(passer)
if not passer:
    print(0)
elif set(passer) == {0}:
    print(K)
else:
    print(max(passer))
0