| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 54481 | 安一宸 | 第k小整数 | C++ | Wrong Answer | 0 | 0 MS | 256 KB | 300 | 2022-07-29 15:43:47 |
#include<bits/stdc++.h> using namespace std; const int N=10010; int n,k,a[N],s,ans=30001; int main(){ cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; } for(int i=1;i<=n;i++){ if(k>0&&ans>a[i]){ k--; ans=a[i]; } } if(k!=0) cout<<"NO RESULT"; else cout<<ans; return 0; }