結果

問題 No.1380 Borderline
ユーザー harurunharurun
提出日時 2021-02-07 20:42:53
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 268 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-07-05 17:02:38
合計ジャッジ時間 2,518 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 41
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin
pin=stdin.readline
def main():
  N,K=map(int,pin().split())
  p=list(map(int,pin().split()))
  for i in range(401):
    cnt=0
    for j in p:
      if j>=i:
        cnt+=1
    if cnt<=K:
      print(cnt)
      return
  print(0)
  return

main()

0