贪心应该让满足顾客要求的最大值最小才能尽可能多。您重载运算符写反变成小根堆了
```cpp
struct node{
ll c,d;
bool operator <(const node &x)const{
return x.c>c;}
};
```
by 梨衣 @ 2020-11-24 12:34:34
@[梨衣](/user/278605) Cu上
by Phoenix_chaser @ 2020-11-24 12:35:18
@[梨衣](/user/278605) 已经解决了,谢谢大佬!
by 无秒 @ 2020-11-24 15:23:03
@[一锆一](/user/238419) 谢谢!
by 无秒 @ 2020-11-24 15:23:18