| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 54723 | 陈路垚 | 第k小整数 | C++ | Wrong Answer | 0 | 0 MS | 256 KB | 253 | 2022-07-29 16:57:00 |
#include<bits/stdc++.h> using namespace std; int a[10086],n,k,b=-1,ans; int main(){ cin>>n>>k; int i; for(i=0;i<n;i++){ cin>>a[i]; if(a[i]==a[i-1]) i--; } sort(a,a+n); if(a[k]!=0) cout<<a[k]; else cout<<"NO RESULT"; return 0; }