long long a[50000000],n,m; cin>>n>>m; for(int i=0;i<n;i++)cin>>a[i]; sort(a,a+n); cout<<a[m 如上,测试时都对,为什么会超时呢? 求大佬帮帮忙