This paper analyzes the effect of competition in a dynamic contest in which agents of two types (A and B) differ in their expected performances; environments where type A outperforms type B are more frequent than those where B outperforms A. In each period, the population of agents is randomly matched in groups of n members (each group faces a particular environment), with the top k