<doocs>1760.Minimum Limit of Balls in a Bag_1.py
def minimumSize( nums: List[int], maxOperations: int) -> int:
    left, right = 1, max(nums)
    while left < right:
        mid = (left + right) >> 1
        ops = sum((num - 1) // mid for num in nums)
        if ops <= maxOperations:
            right = mid
        else:
            left = mid + 1
    return left
def sample_funcname ( var_0 : List [ int ] , var_3 : int ) -> int :
    var_5 , var_7 = 1 , max ( var_0 )
    while var_5 < var_7 :
        var_8 = ( var_5 + var_7 ) >> 1
        var_11 = sum ( ( var_10 - 1 ) // var_8 for var_10 in var_0 )
        if var_11 <= var_3 :
            var_7 = var_8
        else :
            var_5 = var_8 + 1
    return var_5
