結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,852 KB
testcase_01 AC 17 ms
7,852 KB
testcase_02 AC 16 ms
7,920 KB
testcase_03 AC 16 ms
7,852 KB
testcase_04 AC 16 ms
7,848 KB
testcase_05 AC 16 ms
7,816 KB
testcase_06 WA -
testcase_07 AC 15 ms
7,876 KB
testcase_08 AC 16 ms
7,960 KB
testcase_09 AC 15 ms
7,812 KB
testcase_10 AC 16 ms
7,812 KB
testcase_11 AC 15 ms
7,808 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 18 ms
7,908 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 18 ms
7,860 KB
testcase_19 AC 17 ms
7,912 KB
testcase_20 WA -
testcase_21 AC 18 ms
7,816 KB
testcase_22 AC 18 ms
7,784 KB
testcase_23 WA -
testcase_24 AC 18 ms
7,812 KB
testcase_25 WA -
testcase_26 AC 18 ms
7,860 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 17 ms
7,952 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 18 ms
7,908 KB
testcase_38 WA -
testcase_39 AC 18 ms
7,944 KB
testcase_40 AC 18 ms
7,852 KB
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
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, 100):
    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