n,k = map(int,input().split())
a= list(map(int, input().split()))
a.sort()
print(a[k-1])
'백준 풀이' 카테고리의 다른 글
백준 11728번 파이썬 (0) | 2022.08.26 |
---|---|
백준 9655번 파이썬 (0) | 2022.08.26 |
백준 1789번 파이썬 (0) | 2022.08.26 |
백준 1475번 파이썬 (0) | 2022.08.26 |
백준 1010번 파이썬 (0) | 2022.08.26 |