結果

問題 No.1380 Borderline
ユーザー HAGI_TARO
提出日時 2021-09-23 08:51:43
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 227 bytes
コンパイル時間 175 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 59,264 KB
最終ジャッジ日時 2024-07-05 09:24:26
合計ジャッジ時間 3,391 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 18 WA * 23
権限があれば一括ダウンロードができます

ソースコード

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