Count the total red and blue nodes of children of its subtree
sub_red [ v ] += sub_red [ adj [ v ] [ i ] ] ; NEW_LINE sub_blue [ v ] += sub_blue [ adj [ v ] [ i ] ] ; NEW_LINE if ( color [ v ] == 1 ) : NEW_LINE sub_red [ v ] += 1 ; NEW_LINE