We examine a dynamic model of teamwork in which the public attributes credit for success based on its perception of individual efforts. The collaborative behavior varies starkly depending on the shape of marginal effort cost, or project's "difficulty." In the unique (interior) equilibrium, higher ability collaborators work less and thus receive lower credit and payoff for "easy" projects, while the reverse holds for "difficult" projects. Despite free-riding, the team equilibrium may involve over-investment. Social efficiency requires over-rewarding collaborative work and under-rewarding solo work. The incentives to team up and the impact of effort monitoring on credit attribution are also investigated.