<doocs>2335.Minimum Amount of Time to Fill Cups_1.py
def fillCups( amount: List[int]) -> int:
    ans = 0
    while sum(amount):
        amount.sort()
        ans += 1
        amount[2] -= 1
        amount[1] = max(0, amount[1] - 1)
    return ans
def sample_funcname ( var_0 : List [ int ] ) -> int :
    var_4 = 0
    while sum ( var_0 ) :
        var_0.sort ( )
        var_4 += 1
        var_0 [ 2 ] -= 1
        var_0 [ 1 ] = max ( 0 , var_0 [ 1 ] - 1 )
    return var_4
