LCY2015 @ 2024-08-09 10:03:05
for(int i=0;i<n;i++){
scanf("%d",&a[i]);
}
#include<bits/stdc++.h>
using namespace std;
int n,k,a[5000000];
int main(){
cin>>n>>k;
for(int i=0;i<n;i++){
scanf("%d",&a[i]);
}
sort(a,a+n);
cout<<a[k];
return 0;
}
by daizihao120330 @ 2024-08-18 21:54:59
666
by wangxiaoyi1118 @ 2024-08-30 11:34:05
@LCY2015 我就是没用格式化
by LCY2015 @ 2024-08-30 12:57:51
@wangxiaoyi1118 嗯嗯