大伙们快来帮帮妹子啊
by QWQ_JL @ 2020-01-20 14:30:38
orz
by 浩瀚星空 @ 2020-01-20 14:30:50
orzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
by YangShine @ 2020-01-20 14:30:58
第二份AC代码
```cpp
#include<iostream>
#include<cstdio>
#include<cmath>
#include<algorithm>
#include<cstring>
#include<iomanip>
#include<queue>
using namespace std;
priority_queue<int>q;
int n,a,b;
int wet;
int ti;
int main()
{
cin>>n>>a>>b;
for(int i=1;i<=n;i++)
{
cin>>wet;
q.push(wet);
}
while(1)
{
int temp=q.top();
q.pop();
if(temp<=ti*a) break;
temp-=b;
q.push(temp);
ti++;
}
cout<<ti<<endl;
return 0;
}
```
by lcy09 @ 2020-01-20 14:30:59
or2
by daerwen @ 2020-01-20 14:31:13
%%%%%%%%%
by ChPu437 @ 2020-01-20 14:31:16
tql%%%orz
by tongyf @ 2020-01-20 14:31:17
Ac代码```
#include<bits/stdc++.h>
using namespace std;
priority_queue<int>q;
int N,A,B,x;
int main(){
scanf("%d%d%d",&N,&A,&B);
for(int i=1;i<=N;++i){cin>>x;q.push(x);}
int now,t=0;
while(1){
int now=q.top();q.pop();
if(now<=t*A) {break;}
t++;
now-=B;
q.push(now);
}
printf("%d",t);
return 0;
}
```
by Xing_ke @ 2020-01-20 14:31:21
救救妹纸吧
by 缥落渺然 @ 2020-01-20 14:31:33
%%%%%%%
by Johnsonloy @ 2020-01-20 14:31:33