fkcufk @ 2023-03-18 18:35:55
#include<bits/stdc++.h>
using namespace std;
int a[5000005],k;
int main(){
ios_base::sync_with_stdio(false);
int n;
cin >> n >> k;
for(int i=1;i<=n;i++)
cin >> a[i];
sort(a+1,a+n+1);
cout << a[k+1];
return 0;
}
by fkcufk @ 2023-03-19 08:21:44
AC了,此贴完结。