728x90
코드
import sys
n, k = map(int, input().split())
arr = list(map(int,input().split()))
arr.sort()
print(arr[k-1])
입출력
'Algorithm' 카테고리의 다른 글
[알고리즘] 괄호 백준 9012 (Python) (0) | 2022.01.14 |
---|---|
[알고리즘] 스택 백준 10828 (Python) (0) | 2022.01.14 |
[알고리즘] 카드 백준 11652 (Python) (0) | 2022.01.14 |
[알고리즘] 2 x N 타일링2 백준11727 (Python) (0) | 2022.01.12 |
[알고리즘] 2xn 타일링 백준 11726 (Python) (0) | 2022.01.12 |