| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 81397 | sh25_wuyy | 求第k大数 | C++ | Accepted | 0 MS | 244 KB | 369 | 2026-01-04 17:42:40 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,k; cin>>n>>k; int a[n],t; for(int i=0;i<n;i++){ cin>>a[i]; }for(int i=0;i<n;i++){ for(int j=i;j<n-1;j++){ if(a[j]<a[j+1]){ t=a[j]; a[j]=a[j+1]; a[j+1]=t; } } }cout<<a[k]; return 0; }