In a tournament each player played exactly one game against each of the other players. In each game the winner was awarded 1 point, the loser got 0 point, and each of the two players earned 1/2 point if the game was a tie. After the completion of the tournament, it was found that exactly half of the points earned by each player were earned in games against the ten players with the least number of points (In particular, each of the ten lowest scoring players earned half of her/his points against the other nine of the ten). What was the total number of players in the tournament?

(第三届AIME1985 第14题)