| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 80558 | sh25_zhuwy | 求第k大数 | C++ | Accepted | 0 MS | 240 KB | 381 | 2026-01-04 15:22:03 |
#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; }