<doocs>1833.Maximum Ice Cream Bars_1.py
def maxIceCream( costs: List[int], coins: int) -> int:
    costs.sort()
    ans = 0
    for c in costs:
        if coins < c:
            break
        else:
            ans += 1
            coins -= c
    return ans
def sample_funcname ( var_0 : List [ int ] , var_3 : int ) -> int :
    var_0.sort ( )
    var_6 = 0
    for var_7 in var_0 :
        if var_3 < var_7 :
            break
        else :
            var_6 += 1
            var_3 -= var_7
    return var_6
