Problem

Source: Croatia 1999 2nd Grade P4

Tags: combinatorics, Tournament



In a basketball competition, $n$ teams took part. Each pair of teams played exactly one match, and there were no draws. At the end of the competition the $i$-th team had $x_i$ wins and $y_i$ defeats $(i=1,\ldots,n)$. Prove that $x_1^2+x_2^2+\ldots+x_n^2=y_1^2+y_2^2+\ldots+y_n^2$.