結果

問題 No.1380 Borderline
ユーザー HAGI_TAROHAGI_TARO
提出日時 2021-09-23 08:51:43
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 227 bytes
コンパイル時間 346 ms
コンパイル使用メモリ 86,952 KB
実行使用メモリ 75,944 KB
最終ジャッジ日時 2023-09-18 19:49:28
合計ジャッジ時間 6,469 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,216 KB
testcase_01 AC 75 ms
71,316 KB
testcase_02 AC 76 ms
71,416 KB
testcase_03 AC 74 ms
71,308 KB
testcase_04 WA -
testcase_05 AC 75 ms
71,108 KB
testcase_06 WA -
testcase_07 AC 74 ms
71,168 KB
testcase_08 AC 75 ms
71,408 KB
testcase_09 AC 76 ms
71,380 KB
testcase_10 AC 75 ms
71,232 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 84 ms
75,856 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 80 ms
75,684 KB
testcase_19 AC 77 ms
75,832 KB
testcase_20 WA -
testcase_21 AC 80 ms
75,872 KB
testcase_22 AC 82 ms
75,808 KB
testcase_23 WA -
testcase_24 AC 82 ms
75,832 KB
testcase_25 WA -
testcase_26 AC 81 ms
75,804 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 81 ms
75,844 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 82 ms
75,728 KB
testcase_36 WA -
testcase_37 AC 80 ms
75,880 KB
testcase_38 WA -
testcase_39 AC 79 ms
75,808 KB
testcase_40 AC 81 ms
75,880 KB
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 AC 77 ms
71,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k = map(int,input().split())
P = list(map(int,input().split()))
ans = 0
for i in range(k+1):
    cnt = 0
    for j in range(n):
        if P[j] >= i:
            cnt += 1
    if cnt <= k:
        ans = max(ans,cnt)
print(ans)
0