<doocs>0256.Paint House_1.py
def minCost( costs: List[List[int]]) -> int:
    a = b = c = 0
    for ca, cb, cc in costs:
        a, b, c = min(b, c) + ca, min(a, c) + cb, min(a, b) + cc
    return min(a, b, c)
def sample_funcname ( var_0 : List [ List [ int ] ] ) -> int :
    var_6 = var_3 = var_4 = 0
    for var_7 , var_8 , var_9 in var_0 :
        var_6 , var_3 , var_4 = min ( var_3 , var_4 ) + var_7 , min ( var_6 , var_4 ) + var_8 , min ( var_6 , var_3 ) + var_9
    return min ( var_6 , var_3 , var_4 )
