#include<bits/stdc++.h>
#define maxn 50000010
using namespace std;
int x[maxn],k;
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int n;
cin>>n>>k;
for(int i=0;i<n;i++)
{
cin>>x[i];
}
sort(x,x+n);
cout<<x[k];
return 0;
}
这题要求这么高吗/?