daizihao120330 @ 2024-08-18 21:53:29
#include<bits/stdc++.h>
using namespace std;
int n,m,a[100001];
int main() {
scanf("%d%d",&n,&m);
for(int i=1; i<=n; i++) scanf("%d",&a[i]);
sort(a+1,a+n+1);
printf("%d",a[m+1]);
return 0;}
by 鶴守丶葉七 @ 2024-08-18 21:54:43
@daizihao120330 ...?为什么不能过 深基这一章就是讲排序的
by daizihao120330 @ 2024-08-18 21:57:15
哈哈,说对了!