| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 91462 | sh25_zhoumy | 分数线划定 | C++ | 通过 | 0 MS | 248 KB | 454 | 2026-06-12 15:49:21 |
#include<bits/stdc++.h> using namespace std; int n,m,sum; struct node{ int h,f; }; node p[5005]; bool cmp(node x,node y){ if(x.f!=y.f)return x.f>y.f; return x.h<y.h; } int main(){ scanf("%d%d",&n,&m); for(int i=1;i<=n;i++)scanf("%d%d",&p[i].h,&p[i].f); sort(p+1,p+n+1,cmp); m*=1.5; for(int i=1;i<=n&&p[i].f>=p[m].f;i++)sum++; printf("%d %d\n",p[m].f,sum); for(int i=1;i<=sum;i++)printf("%d %d\n",p[i].h,p[i].f); return 0; }