結果

問題 No.1380 Borderline
ユーザー Ultimate_Tea_04Ultimate_Tea_04
提出日時 2021-02-07 21:30:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 297 bytes
コンパイル時間 704 ms
コンパイル使用メモリ 10,516 KB
実行使用メモリ 8,624 KB
最終ジャッジ日時 2023-09-17 20:41:28
合計ジャッジ時間 3,428 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,516 KB
testcase_01 WA -
testcase_02 AC 18 ms
8,484 KB
testcase_03 AC 18 ms
8,448 KB
testcase_04 AC 19 ms
8,524 KB
testcase_05 AC 18 ms
8,476 KB
testcase_06 AC 18 ms
8,476 KB
testcase_07 AC 19 ms
8,624 KB
testcase_08 AC 19 ms
8,596 KB
testcase_09 AC 18 ms
8,588 KB
testcase_10 AC 19 ms
8,524 KB
testcase_11 AC 18 ms
8,524 KB
testcase_12 AC 18 ms
8,488 KB
testcase_13 AC 18 ms
8,404 KB
testcase_14 AC 26 ms
8,560 KB
testcase_15 AC 21 ms
8,532 KB
testcase_16 AC 21 ms
8,460 KB
testcase_17 AC 21 ms
8,540 KB
testcase_18 AC 25 ms
8,624 KB
testcase_19 AC 18 ms
8,468 KB
testcase_20 AC 20 ms
8,536 KB
testcase_21 AC 26 ms
8,540 KB
testcase_22 AC 20 ms
8,424 KB
testcase_23 AC 22 ms
8,564 KB
testcase_24 AC 26 ms
8,560 KB
testcase_25 AC 19 ms
8,476 KB
testcase_26 AC 26 ms
8,500 KB
testcase_27 AC 20 ms
8,424 KB
testcase_28 AC 20 ms
8,604 KB
testcase_29 AC 25 ms
8,540 KB
testcase_30 AC 20 ms
8,464 KB
testcase_31 AC 22 ms
8,576 KB
testcase_32 AC 18 ms
8,608 KB
testcase_33 AC 23 ms
8,512 KB
testcase_34 AC 20 ms
8,544 KB
testcase_35 AC 25 ms
8,488 KB
testcase_36 AC 22 ms
8,492 KB
testcase_37 AC 25 ms
8,464 KB
testcase_38 AC 20 ms
8,612 KB
testcase_39 AC 24 ms
8,540 KB
testcase_40 AC 25 ms
8,564 KB
testcase_41 AC 20 ms
8,600 KB
testcase_42 AC 21 ms
8,460 KB
testcase_43 AC 22 ms
8,568 KB
testcase_44 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections as c
n,k = map(int,input().split())
p = list(map(int,input().split()))
ans = 0
for i in reversed(range(0,max(p))):
    b = i
    cnt = 0
    for j in range(n):
        if p[j]>=b:
            cnt += 1
    if cnt<=k:
        ans = max(ans,cnt)
    else:
        break
print(ans)
0