| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 54427 | 张弛 | 第k小整数 | C++ | Wrong Answer | 0 | 0 MS | 252 KB | 334 | 2022-07-29 15:24:43 |
#include<bits/stdc++.h> using namespace std; int n,k,a[10001]; int b[30001]; int main(){ cin>>n>>k; if(n<k){ cout<<"NO RESULT"; return 0; } for(int i=1;i<=n;i++){ cin>>a[i]; b[a[i]]++; } for(int i=1;i<=n;i++){ if(k==1) cout<<i; if(b[i]>0) k--; } if(k>1) cout<<"NO RESULT"; return 0; }