External Contest

Does Codechef decides the winner of an external contest?

It is determined by the people who conduct the event. The ranklist uses the ranking algorithm by codechef. The final decision is by the conductors of the event itself.