sxms_tanjialei @ 2023-09-30 20:54:50
代码:
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,k;
cin>>n;
cin>>k;
int a[n];
for(int i=0;i<n;i++)
cin>>a[i];
sort(a,a+n);
cout<<a[k];
return 0;
}
by Ssim_on_wxs @ 2023-10-07 18:22:09
@sxms_tanjialei 对的(不过 我是蒟蒻)
by sxms_tanjialei @ 2023-10-07 19:53:36
@Ssim_on_wxs 懂了,感谢大佬
by gjr0128 @ 2023-10-17 12:34:57
ios::sync_with_stdio(false);
cin.tie(0),cout.tie(0);