#NEWLINE# def combine( self , tmp , house ) : #NEWLINE# #INDENT# ( smallest , k , i ) = ( min ( self ) , len ( tmp ) , tmp . index ( min ( tmp ) ) ) #NEWLINE# ( tmp , tmp [ i ] ) = ( ( [ smallest ] * k ) , min ( ( tmp [ : i ] + tmp [ ( i + 1 ) : ] ) ) ) #NEWLINE# return map ( sum , zip ( tmp , house ) )