Retribution321 @ 2024-11-21 17:53:50
#include<bits/stdc++.h>
using namespace std;
#define pzq(a,b,c) for(int a=b;a<c;a++)
#define maxn 10001
int main(){
int n,k,a[maxn];
cin>>n>>k;
pzq(i,0,n)cin>>a[i];
sort(a,a+n);
unique(a,a+n);
cout<<a[k];
return 0;
}
by SunXiaolang @ 2024-11-21 18:07:30
@Retribution321求关