| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 54306 | 张弛 | 第k小整数 | C++ | Wrong Answer | 0 | 0 MS | 256 KB | 334 | 2022-07-29 14:29:19 |
#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==0) cout<<i; if(b[i]>0) k--; } if(k>0) cout<<"NO result"; return 0; }