<doocs>0474.Ones and Zeroes_1.py
def findMaxForm( strs: List[str], m: int, n: int) -> int:
    dp = [[0] * (n + 1) for _ in range(m + 1)]
    t = [(s.count('0'), s.count('1')) for s in strs]
    for k in range(len(strs)):
        n0, n1 = t[k]
        for i in range(m, n0 - 1, -1):
            for j in range(n, n1 - 1, -1):
                dp[i][j] = max(dp[i][j], dp[i - n0][j - n1] + 1)
    return dp[-1][-1]
def sample_funcname ( var_0 : List [ str ] , var_3 : int , var_5 : int ) -> int :
    var_10 = [ [ 0 ] * ( var_5 + 1 ) for var_8 in range ( var_3 + 1 ) ]
    var_15 = [ ( var_11.count ( '0' ) , var_11.count ( '1' ) ) for var_11 in var_0 ]
    for var_17 in range ( len ( var_0 ) ) :
        var_18 , var_19 = var_15 [ var_17 ]
        for var_20 in range ( var_3 , var_18 - 1 , - 1 ) :
            for var_21 in range ( var_5 , var_19 - 1 , - 1 ) :
                var_10 [ var_20 ] [ var_21 ] = max ( var_10 [ var_20 ] [ var_21 ] , var_10 [ var_20 - var_18 ] [ var_21 - var_19 ] + 1 )
    return var_10 [ - 1 ] [ - 1 ]
