大佬求教,为什么超时
查看原帖
大佬求教,为什么超时
1160843
wuyu6688楼主2024/4/30 21:47
#include<bits/stdc++.h>
using namespace std;
int main(){
	int a[5000001] , b , c;
	cin >> b >> c;
	for(int i = 0; i < b; i++)
	{
		cin >> a[i];
	}
	sort(a , a + b);
	cout << a[c] <<endl;
	return 0;
}
2024/4/30 21:47
加载中...