Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
140167 | EUCLID | 第k小数1 | C++ | 编译错误 | 0 | 0 MS | 0 KB | 392 | 2024-03-29 14:01:11 |
#include <bits/stdc++.h> using namespace std; double a[1000005]; /*struct qwq{ double a,b; void input(){ cin>>a>>b; } void output(){ cout<<a<<" "<<b<<endl; } bool operator<(const qwq o)const{ if(a!=o.a)return a<o.a; return b<o.b; } }*/ int main(){ double n; int k; cin>>n>>k; for(int i=0;i<n;i++)cin>>a[i]; sort(a,a+n); cout<<a[k-1]; return 0; }