Browse · MathNet
Print65th Czech and Slovak Mathematical Olympiad
Czech Republic counting and probability
Problem
Nela and Jane choose positive integer and then play a game with a table. Nela selects in every of her moves one empty unit square and she writes to it. Jane writes to some empty (unit) square in every her move. Furthermore, Jane's moves follow each Nela's move and Nela starts. If sum of numbers in each row and each column is odd anytime during the game, Jane wins. If girls fill out the whole table (without Jane's win), Nela wins. Find the least such that Jane has the winning strategy. (Michal Rolínek)

Solution
Let us show at first that Jane wins for . Let us assume squares , and (see the picture).
We will call the square covered if just one is in each its row and column. If Jane covers squares , and without writing to other squares, she wins, because sums in all rows and columns are odd number .
Fig. 3
It is obvious that if at most one (and no ) is written in any square after Nela's move, Jane can cover this square because of . Jane has the following strategy: If Nela writes to any uncovered square , or , Jane covers it immediately. In the opposite case Jane covers any of the uncovered squares. Jane thus wins after three her triples of moves.
We will show that Nela has winning strategy for . Let us realize that if Jane has some winning move, just rows and columns have odd sum before Jane's move, and the winning Jane's move is writing to the intersection of the only one "even" row with the only one "even" column. This implies that if Jane has winning move, this move is unique.
Now it is obvious Nela's winning strategy for . If Jane has winning move after her move, Nela writes to this square and Jane loses her unique chance for win. In the opposite case Nela writes to some empty square. This move doesn't change parity of sums in rows and columns and Jane still hasn't winning move. This strategy allows Nela to fill out whole table without giving Jane chance to win.
In the case Nela will use the same strategy as for . This strategy doesn't give Jane chance to win in her first move. In the second move Jane can't win because after that move the table contains even number of 's which excludes possibility to be odd number 's in every of (odd number) nine rows.
Conclusion. The least value , for which Jane has winning strategy, is .
We will call the square covered if just one is in each its row and column. If Jane covers squares , and without writing to other squares, she wins, because sums in all rows and columns are odd number .
Fig. 3
It is obvious that if at most one (and no ) is written in any square after Nela's move, Jane can cover this square because of . Jane has the following strategy: If Nela writes to any uncovered square , or , Jane covers it immediately. In the opposite case Jane covers any of the uncovered squares. Jane thus wins after three her triples of moves.
We will show that Nela has winning strategy for . Let us realize that if Jane has some winning move, just rows and columns have odd sum before Jane's move, and the winning Jane's move is writing to the intersection of the only one "even" row with the only one "even" column. This implies that if Jane has winning move, this move is unique.
Now it is obvious Nela's winning strategy for . If Jane has winning move after her move, Nela writes to this square and Jane loses her unique chance for win. In the opposite case Nela writes to some empty square. This move doesn't change parity of sums in rows and columns and Jane still hasn't winning move. This strategy allows Nela to fill out whole table without giving Jane chance to win.
In the case Nela will use the same strategy as for . This strategy doesn't give Jane chance to win in her first move. In the second move Jane can't win because after that move the table contains even number of 's which excludes possibility to be odd number 's in every of (odd number) nine rows.
Conclusion. The least value , for which Jane has winning strategy, is .
Final answer
3
Techniques
Invariants / monovariantsGames / greedy algorithms