| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 54581 | 杨竣周 | 第k小整数 | C++ | Accepted | 100 | 0 MS | 376 KB | 299 | 2022-07-29 16:28:14 |
#include<bits/stdc++.h> using namespace std; int n,k,_[30001]; int main(){ scanf("%d %d",&n,&k); for(int c,i=1;i<=n;i++){ scanf("%d",&c); _[c]++; } for(int i=1;i<=30000;i++){ if(_[i])k--; if(!k){ printf("%d",i); return 0; } } printf("NO RESULT"); return 0; }