| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 55584 | 邢逸轩 | 第k小整数 | C++ | Wrong Answer | 18 | 0 MS | 372 KB | 303 | 2022-07-30 12:40:16 |
#include<bits/stdc++.h> using namespace std; int n,k,a[30010],s,f,cscs; int main(){ cin>>n>>k; for(int i=1;i<=n;i++){ cin>>s; a[s]++; } for(int i=1;i<=30010;i++){ if(a[i]) f++; if(f==k){ cout<<i; cscs=1; break; } } if(!cscs) cout<<"NO RESULT"; return 0; }