| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 109256 | 曾煦翔 | 第k小数1 | C++ | Wrong Answer | 0 | 28 MS | 656 KB | 284 | 2023-11-08 12:53:42 |
#include <bits/stdc++.h> using namespace std; int a[1000010]; bool cmp(int x , int y) { return x < y; } int main() { int n , k; cin >> n >> k; for(int i = 1;i <= n;i++) cin >> a[i]; sort(a + 1,a + n + 1,cmp); cout << a[k]; return 0; }