Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
83884 sh25_zhoumy 求第k大数 C++ 通过 0 MS 256 KB 210 2026-02-03 15:32:29

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int n,k; cin>>n>>k; int s[n]; for(int i=0;i<n;++i) cin>>s[i]; sort(s,s+n,greater<int>()); cout<<s[k-1]; return 0; }


测评信息: