<doocs>2028.Find Missing Observations_1.py
def missingRolls( rolls: List[int], mean: int, n: int) -> List[int]:
    m = len(rolls)
    s = (n + m) * mean - sum(rolls)
    if s > n * 6 or s < n:
        return []
    ans = [s // n] * n
    for i in range(s % n):
        ans[i] += 1
    return ans
def sample_funcname ( var_0 : List [ int ] , var_3 : int , var_4 : int ) -> List [ int ] :
    var_6 = len ( var_0 )
    var_8 = ( var_4 + var_6 ) * var_3 - sum ( var_0 )
    if var_8 > var_4 * 6 or var_8 < var_4 :
        return [ ]
    var_10 = [ var_8 // var_4 ] * var_4
    for var_12 in range ( var_8 % var_4 ) :
        var_10 [ var_12 ] += 1
    return var_10
