結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
8,380 KB
testcase_01 AC 22 ms
8,288 KB
testcase_02 AC 22 ms
8,344 KB
testcase_03 AC 23 ms
8,240 KB
testcase_04 AC 25 ms
8,384 KB
testcase_05 AC 19 ms
8,420 KB
testcase_06 AC 19 ms
8,408 KB
testcase_07 AC 22 ms
8,256 KB
testcase_08 AC 24 ms
8,352 KB
testcase_09 AC 22 ms
8,360 KB
testcase_10 AC 22 ms
8,304 KB
testcase_11 AC 21 ms
8,216 KB
testcase_12 AC 20 ms
8,256 KB
testcase_13 AC 22 ms
8,392 KB
testcase_14 AC 146 ms
8,228 KB
testcase_15 AC 150 ms
8,388 KB
testcase_16 AC 150 ms
8,296 KB
testcase_17 AC 146 ms
8,352 KB
testcase_18 AC 145 ms
8,260 KB
testcase_19 AC 146 ms
8,220 KB
testcase_20 AC 147 ms
8,216 KB
testcase_21 AC 144 ms
8,248 KB
testcase_22 AC 146 ms
8,236 KB
testcase_23 AC 151 ms
8,344 KB
testcase_24 AC 144 ms
8,384 KB
testcase_25 AC 144 ms
8,428 KB
testcase_26 AC 143 ms
8,216 KB
testcase_27 AC 143 ms
8,284 KB
testcase_28 AC 142 ms
8,368 KB
testcase_29 AC 144 ms
8,244 KB
testcase_30 AC 144 ms
8,344 KB
testcase_31 AC 144 ms
8,284 KB
testcase_32 AC 143 ms
8,252 KB
testcase_33 AC 145 ms
8,304 KB
testcase_34 AC 145 ms
8,348 KB
testcase_35 AC 142 ms
8,256 KB
testcase_36 AC 143 ms
8,348 KB
testcase_37 AC 147 ms
8,348 KB
testcase_38 AC 143 ms
8,384 KB
testcase_39 AC 145 ms
8,276 KB
testcase_40 AC 144 ms
8,244 KB
testcase_41 AC 146 ms
8,280 KB
testcase_42 AC 142 ms
8,344 KB
testcase_43 AC 143 ms
8,352 KB
testcase_44 WA -
権限があれば一括ダウンロードができます

ソースコード

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)
else:
    print(max(passer))
0