| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 77218 | sh25_shenpy | 求第k大数 | C++ | Accepted | 0 MS | 240 KB | 270 | 2025-12-21 16:48:21 |
#include<bits/stdc++.h> #include<algorithm> #include<functional> using namespace std; int main() { int n,m; cin>>n>>m; int a[n]; for(int i=0;i<n;++i){ cin>>a[i]; } sort(a,a+n,greater<int>()); cout<<a[m-1]; return 0;}