| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 109476 | 林泽豪 | 第k小数1 | C++ | Wrong Answer | 30 | 38 MS | 288 KB | 309 | 2023-11-09 13:09:21 |
#include<bits/stdc++.h> using namespace std; int a[10000]; int main() { int an,b,mn; cin>>an>>b; for(int i=1;i<=an;i++){ cin>>a[i]; } for(int i=1;i<=b;i++){ int m=i; for(int o=i+1;o<=an;o++){ if(a[m]>a[o]){ m=o; } } mn=m; swap(a[m],a[i]); } cout<<mn; return 0; }