| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82577 | sh25_wanghy | 求第k大数 | C++ | 通过 | 0 MS | 248 KB | 262 | 2026-01-15 19:27:48 |
#include<bits/stdc++.h> #include<algorithm> #include<functional> using namespace std; int main(){ int m,n; cin>>m>>n; int s[m]; for(int i=0;i<m;++i) cin>>s[i]; sort(s,s+m,greater<int>()); cout<<s[n-1]; return 0; }