Solution. We will represent the tournament as an \( n \times n \) table, in which both the columns and the rows are numbered from 1 to \( n \). The columns correspond to the girls, and the rows to the boys. Then each game is represented by a cell whose coordinates correspond to the numbers of the girl and the boy playing in that game. First, place a token in the cell \( (1,1) \). After a girl’s victory, the token moves upward, and in the case of a boy’s victory, it moves to the right. If the token reaches the edge of the table, then from the last row when moving upward it moves to the first row, and from the last column when moving to the right it moves to the first column. Then the condition of the problem is equivalent to the token visiting all the cells of the table, being in each of them exactly once.
Color the cells of the table in \( n \) colors along the diagonals going right-down: the first diagonal in the first color, the second in the second, …, the \( n \)-th diagonal in the \( n \)-th color, and the following diagonals again in colors from the first to the \( n-1 \)-th. Note that after each game, the color number of the cell in which the token is located increases by 1 modulo \( n \). Since a total of \( n^{2} \) games were played in the tournament, which is divisible by \( n \), the token in the end is in a cell of the \( n \)-th color, that is, on the main diagonal (hereafter, when we say “diagonal,” we will mean precisely this diagonal). Let the final cell in the token’s route be located in the column with number \( m \); then it is required to prove that the number \( m \) is odd.
From the top cell of the diagonal, the token could not go upward, since it had already been in the cell \( (1,1) \). Hence, if this cell is not final, then from it the token went to the right. Then from the next cell of the diagonal it also made a move to the right, and so on, up to the cell located in the column with number \( m-1 \). Similarly, from the cells of the diagonal located in the columns with numbers from \( m+1 \) to \( n \), the token moved upward (see fig. 4). Let the first cell of the diagonal that the token entered be in the column with number \( k \).
Consider the path of the token from the starting cell to this cell. All paths from cells of the first color to the next cell of color \( n \) must be the same as the path under consideration; namely, each such path is obtained from another by shifting by the vector \( (1,-1) \). Indeed, if the token from the cell \( (a-1, b) \) made a move upward, and from the cell \( (a, b-1) \) to the right, then it would not arrive at the cell \( (a, b) \); and if from these cells it made moves to the right and upward respectively, then it would arrive at one and the same cell twice. Therefore, from each such pair of cells the token made the same moves.
Without loss of generality, we will assume that \( k<m \). The cells of the diagonal that are to the left of the final cell will be called left, and those that are to the right — right. We number the left cells by the numbers from 1 to \( m-1 \), and the right cells — from 1 to \( n-m \) (in both cases we number them moving right-down). Let us see in what order the token visited these cells. From the left cells it shifted \( k \) cells to the right (since from them it made a move to the right to reach a cell of the first color), and from the right cells — \( k-1 \) cell(s) to the right. Hence, for left cells only the remainder of the number upon division by \( k \) is important, and for right cells — the remainder upon division by \( k-1 \). Moreover, if the number of right cells is less than \( k \), one may increase \( n \) by \( 2(k-1) \), adding \( 2(k-1) \) right cells; this will not affect the subsequent argument. For convenience, we replace all cell numbers by the corresponding remainders, and for right cells, instead of the remainder 0, we use the number \( k-1 \).
Let the number \( m \) give remainder \( d \) when divided by \( k \). Then the first transition from left cells to right cells was from the number 0 to the number \( k-d \), and at this moment all cells with zero in the left part were visited. Only the numbers from 1 to \( k-1 \) remain on the diagonal. Next, the chain of transitions between right and left cells looks like \( k-d \rightarrow \cdots \rightarrow d \). In this chain each number from 1 to \( k-1 \) occurs twice; it begins on right cells and ends on left cells. Transitions from right cells to left cells we call transitions of the first type, and from left to right — of the second type. Then the chain contains \( k-1 \) transitions of the first type and \( k-2 \) of the second type, and they alternate.
We prove that every two numbers in the chain, symmetric with respect to its center, sum to \( k \). This is true for the extreme numbers. Every two symmetric transitions have the same type; therefore, in them the same number is added modulo \( k-1 \) (for transitions of the first type) or modulo \( k \) (for transitions of the second type). Hence, the sum of the next two symmetric numbers (which are closer to the center of the chain) is again congruent either to 1 modulo \( k-1 \) or to 0 modulo \( k \). But the sum of the numbers themselves is not less than 2 and not greater than \( 2k-2 \), therefore it can only be equal to \( k \).
Assume that \( m \) is even, and consider two cases.
1) \( k \) is odd. Then the central transition in the chain is of the second type. The lower-right cell of the diagonal has an odd number, since the number \( n-m \) is odd and \( k-1 \) is even. The upper-left cell of the diagonal also has an odd number; therefore, in a transition of the first type, the parity of the number changes. Suppose from the number 1 a transition of the first type goes to the number \( 2s \). Then modulo \( k-1 \) the transitions of the first type look like \( 1 \rightarrow 2s, 2 \rightarrow 2s+1, \ldots, k-1 \rightarrow 2s+k-2 \). The sums of the numbers in these pairs are consecutive odd numbers, therefore modulo \( k-1 \) they give all odd residues twice. In particular, there is a transition whose sum is 1 modulo \( k-1 \). As shown above, this sum is equal to \( k \). But then the symmetric transition also has the first type and contains the same numbers, which means that one of the transitions is repeated, which is impossible.
2) \( k \) is even. Then the central transition in the chain is of the first type. The last left cell has an odd number, since \( m-1 \) is odd and \( k \) is even. The first right cell also has an odd number, hence under transitions of the second type the parity of the number does not change. Similarly to the first case, one can show that among them there is a transition whose pair of numbers sums to \( k \), giving the same contradiction.
Remark. After describing the order in which the token passes through the cells of the diagonal (from the left it shifts \( k \) cells to the right, and from the right — \( k-1 \) cells), the solution can be completed in a different way.
Number all the cells of the diagonal by the numbers from 1 to \( n \) from left to right. Draw an arrow from each cell to the cell in which the token appears next; these arrows form a path starting at the cell \( k \) and ending at the cell \( m \). Add an arrow leading from the cell \( m \) to the cell \( k \); we obtain a cycle that passes through all the cells of the diagonal.
This cycle determines a permutation \( \sigma \) of the numbers \( 1,2,\ldots,n \), where \( \sigma(i) \) is the number of the cell to which the arrow from cell \( i \) leads. This permutation is a cycle on \( n \) elements. Recall that a permutation which is a cycle on \( b \) elements has parity different from the parity of \( b \). Therefore, the permutation \( \sigma \) is even.
On the other hand, \( \sigma \) is obtained as a composition (successive application) of two permutations: \( \tau \), which sends \( x \mapsto x+(k-1) \bmod n \), and \( \theta \), acting as \( k \mapsto(k+1) \mapsto \cdots \mapsto(m+k-1) \mapsto k \). The permutation \( \tau \) consists of several cycles of equal length; therefore, these cycles have odd length, and hence \( \tau \) is even. Thus, \( \theta \) is also even, which exactly means that \( m \) is odd.