| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 78881 | sh25_ganzy | 谁考了第k名 | C++ | Wrong Answer | 0 MS | 248 KB | 509 | 2025-12-28 14:13:26 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,k; cin>>n>>k; int a[n]; float b[n],t; for(int i=0;i<n;i++){ cin>>a[i]>>b[i]; } for(int i=0;i<n;i++){ for(int j=i;j<n-1;j++){ if(b[j]<b[j+1]){ t=a[j]; a[j]=a[j+1]; a[j+1]=t; t=b[j]; b[j]=b[j+1]; b[j+1]=t; } } } cout<<a[k]<<" "<<b[k]; return 0; }