| 记录编号 | 567649 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 1210.[NOIP 2010冲刺十二]奶牛晒衣服 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.810 s | ||
| 提交时间 | 2021-12-02 20:00:31 | 内存使用 | 3.54 MiB | ||
#include<bits/stdc++.h>
# define N 500000
using namespace std;
int n,a,b,t;
priority_queue<int>q;
int main()
{
freopen("dry.in","r",stdin);
freopen("dry.out","w",stdout);
int i,c,x;
cin>>n>>a>>b;
for(i=1;i<=n;i++)
{
cin>>c;
q.push(c);
}
while(q.top()>t*a)
{
++t;
x=q.top();
q.pop();
q.push(x-b);
}
cout<<t<<endl;
return 0;
// cout<<t<<endl;
return 0;
}