60pts
查看原帖
60pts
793067
Sam_Gamer楼主2023/5/1 15:18
#include<bits/stdc++.h>
#define maxn 50000010
using namespace std;
int x[maxn],k;
int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0); 
    cout.tie(0);
	int n;
	cin>>n>>k;
	for(int i=0;i<n;i++)
	{
		cin>>x[i];
	}
	sort(x,x+n);
    cout<<x[k];
	return 0;
}

这题要求这么高吗/?

2023/5/1 15:18
加载中...