https://www.acmicpc.net/problem/11004 수 N개 A1, A2, ..., AN이 주어진다. A를 오름차순 정렬했을 때, 앞에서부터 K번째 있는 수를 구하는 프로그램을 작성하시오.
Code
n, k = map(int, input().split()) numbers = [int(x) for x in input().split()] print(sorted(numbers)[k-1])