performance peor caso problema1