E303 @ 2024-10-10 20:48:59
电脑系统:macOS 15.1 beta 24B5055e
by E303 @ 2024-10-18 19:55:11
@bitset_iTM 怎么卡
by bitset_iTM @ 2024-10-18 20:02:58
@E303 使用 cin 加速
ios :: sync_with_stdio(0); cin.tie(0); cout.tie(0);
#include<bits/stdc++.h>
using namespace std;
int a[5000005];
int main(){
ios :: sync_with_stdio(0); cin.tie(0); cout.tie(0);
register int n,k=0;
cin>>n>>k;
for(register int i=0;i<n;i++){
cin>>a[i];
}
stable_sort(a,a+n);
cout<<a[k]<<'\n';
}