Skip to main content
OlympiadHQ

Browse · MathNet

Print

Estonian Mathematical Olympiad

Estonia counting and probability

Problem

Mari and Jüri play the following game on an infinite grid: They take turns with Mari starting, Mari colours one uncolored square red in each of her turns, Jüri colours one uncolored square blue in each of his turns. If the centers of any four squares of the same colour form the corners of some square, then this player wins. Does either player have a winning strategy? If so, what is the least number of turns to guarantee a victory?

problem


problem


problem


problem


problem


problem


problem
Solution
We will first prove that Mari can win in 5 turns. We will denote squares in the grid by the coordinates of their centers, taking Mari's first square to be . W.l.o.g., let Jüri's first turn be , allowing him to also color squares with fractional coordinates in future turns (Fig. 7). Mari will color on her second move (Fig. 8). W.l.o.g., assume that the -coordinate of Jüri's second move is nonpositive. The only option for him to color three vertices of some square together with and is by choosing (Fig. 9). The only option for him to color three vertices of some square together with and is by Fig. 8 Fig. 9 Fig. 10 --- choosing (Fig. 10). Thus we consider three cases.

If Jüri colors or on his second turn, let it be without loss of generality (due to symmetry). Then Mari will color (Fig. 11), after which Jüri is forced to color to avoid immediate defeat. Then Mari can color (Fig. 12), threatening to win by or . Jüri cannot block both squares at once or win himself, so Mari will win on the next move.

If Jüri colors , , or , then assume without loss of generality that the -coordinate of this move is greater than . Mari will color again, after which Jüri is forced to color to avoid immediate defeat (the two possible positions are shown in Figures 13 and 14). As , and are all uncolored, Mari can win exactly like in the previous case.

* If Jüri colors any other square on his second turn, then Mari can color and win just like in the other cases.

Fig. 11 Fig. 12 Fig. 13 Fig. 14

We finally note that Mari cannot win in 4 moves, as after her 3rd move there exists at most 1 square which would yield an immediate victory for her, so Jüri can just block it.
Final answer
Mari has a winning strategy; the least number of her turns needed to guarantee victory is 5.

Techniques

Games / greedy algorithmsColoring schemes, extremal argumentsCartesian coordinates