<doocs>0887.Super Egg Drop_1.py
def superEggDrop( K: int, N: int) -> int:
    dp = [1] * (K)
    while dp[K - 1] < N:
        for i in range(K - 1, 0, -1):
            dp[i] = dp[i] + dp[i - 1] + 1
        dp[0] = dp[0] + 1
    return dp[0]
def sample_funcname ( var_0 : int , var_2 : int ) -> int :
    var_4 = [ 1 ] * ( var_0 )
    while var_4 [ var_0 - 1 ] < var_2 :
        for var_7 in range ( var_0 - 1 , 0 , - 1 ) :
            var_4 [ var_7 ] = var_4 [ var_7 ] + var_4 [ var_7 - 1 ] + 1
        var_4 [ 0 ] = var_4 [ 0 ] + 1
    return var_4 [ 0 ]
