860. Lemonade Change
原本想虾鸡巴乱写很复杂的程式码,后来想想还是简单比较好
class Solution {
public:
bool lemonadeChange(vector<int>& bills) {
int bill5 = 0;
int bill10 = 0;
// int bill20 = 0;
for(int bill : bills) {
int change = bill - 5;
if(change == 0) {
bill5++;
} else if(change == 5) {
if(bill5 ==0) {
return false;
}
bill5