<doocs>0860.Lemonade Change_1.py
def lemonadeChange( bills: List[int]) -> bool:
    five = ten = 0
    for v in bills:
        if v == 5:
            five += 1
        elif v == 10:
            ten += 1
            five -= 1
        else:
            if ten:
                ten -= 1
                five -= 1
            else:
                five -= 3
        if five < 0:
            return False
    return True
def sample_funcname ( var_0 : List [ int ] ) -> bool :
    var_6 = var_4 = 0
    for var_7 in var_0 :
        if var_7 == 5 :
            var_6 += 1
        elif var_7 == 10 :
            var_4 += 1
            var_6 -= 1
        else :
            if var_4 :
                var_4 -= 1
                var_6 -= 1
            else :
                var_6 -= 3
        if var_6 < 0 :
            return False
    return True
