To win, you must have six Pikmin with flowers on their heads at once.
The pikmin start with a leaf [I believe] and over time it turns into a bloom. Over MORE time it turns into a flower. So basically, you just have to stall and stop the others from attacking your Pikmin. I think it takes a total of a few minutes [undisturbed] for them to get a flower, so just be cautious.