Browse · MathNet
Print36th Balkan Mathematical Olympiad
Greece counting and probability
Problem
A grid consists of all points of the form where and are integers with , and . We call the points of the grid with either or the boundary points. The four lines and are called boundary lines. Two points in the grid are called neighbours if the distance between them is equal to 1. Anna and Bob play a game on this grid. Anna starts with a token at the point . They take turns, with Bob playing first. 1) On each of his turns, Bob deletes at most two boundary points on each boundary line. 2) On each of her turns, Anna makes exactly three steps, where a step consists of moving her token from its current point to any neighbouring point which has not been deleted. As soon as Anna places her token on some boundary point which has not been deleted, the game is over and Anna wins.
Does Anna have a winning strategy?
Does Anna have a winning strategy?
Solution
Anna does not have a winning strategy. We will provide a winning strategy for Bob. It is enough to describe his strategy for the deletions on the line .
Bob starts by deleting and . Once Anna completes her turn, he deletes the next two available points on the left if Anna decreased her -coordinate, the next two available points on the right if Anna increased her -coordinate, and the next available point to the left and the next available point to the right if Anna did not change her -coordinate. The only exception to the above rule is on the very first time Anna decreases by exactly 1. In that turn, Bob deletes the next available point to the left and the next available point to the right.
Bob's strategy guarantees the following: If Anna makes a sequence of steps reaching with and the exact opposite sequence of steps in the horizontal direction reaching , then Bob deletes at least as many points to the left of in the first sequence than points to the right of in the second sequence.
So we may assume for contradiction that Anna wins by placing her token at for some .
Define , where is the total number of points deleted by Bob to the right of , and is the position of Anna's token.
For each sequence of steps performed first by Anna and then by Bob, does not decrease. This can be seen by looking at the following table exhibiting the changes in and . We have excluded the cases where .
The table also shows that, if in this sequence of turns Anna changes by +1 or -2, then is increased by 1. Also, if Anna changes by +2 or -1, then the first time this happens is increased by 2. (This also holds if her turn is (0, -1) or (-2, -1), which are not shown in the table.)
Since Anna wins by placing her token at we must have and . So at that exact moment we have: So in her last turn she must have decreased by at least 4. So her last turn must have been (1, 2) or (2, 1), which give a decrease of 4 and 5 respectively. (It could not be (3, 0) because then she must have already won. Also she could not have done just one or two steps in her last turn since this is not enough for the required decrease in .)
If her last turn was (1, 2), then just before doing it we had and . This means that in one of her turns the total change in was not . However, in that case we have seen that , a contradiction.
If her last turn was (2, 1), then just before doing it we had and or . So she must have made at least two turns with the change of being +1 or -2 or at least one step with the change of being +2 or -1. In both cases, consulting the table, we get an increase of at least 2 in , a contradiction.
Note 1: If Anna is allowed to make at most three steps at each turn, then she actually has a winning strategy.
Note 2: If 2019 is replaced by , then Bob has a winning strategy if and only if . □
Bob starts by deleting and . Once Anna completes her turn, he deletes the next two available points on the left if Anna decreased her -coordinate, the next two available points on the right if Anna increased her -coordinate, and the next available point to the left and the next available point to the right if Anna did not change her -coordinate. The only exception to the above rule is on the very first time Anna decreases by exactly 1. In that turn, Bob deletes the next available point to the left and the next available point to the right.
Bob's strategy guarantees the following: If Anna makes a sequence of steps reaching with and the exact opposite sequence of steps in the horizontal direction reaching , then Bob deletes at least as many points to the left of in the first sequence than points to the right of in the second sequence.
So we may assume for contradiction that Anna wins by placing her token at for some .
Define , where is the total number of points deleted by Bob to the right of , and is the position of Anna's token.
For each sequence of steps performed first by Anna and then by Bob, does not decrease. This can be seen by looking at the following table exhibiting the changes in and . We have excluded the cases where .
| Turn | (0,3) | (1,2) | (-1,2) | (2,1) | (0,1) | (3,0) | (1,0) | (2,-1) | (1,-2) |
|---|---|---|---|---|---|---|---|---|---|
| m | 1 | 2 | 0 (or 1) | 2 | 1 | 2 | 2 | 2 | 2 |
| 3m | 3 | 6 | 0 (or 3) | 6 | 3 | 6 | 6 | 6 | 6 |
| 2x + y | 3 | 4 | 0 | 5 | 1 | 6 | 2 | 3 | 0 |
Since Anna wins by placing her token at we must have and . So at that exact moment we have: So in her last turn she must have decreased by at least 4. So her last turn must have been (1, 2) or (2, 1), which give a decrease of 4 and 5 respectively. (It could not be (3, 0) because then she must have already won. Also she could not have done just one or two steps in her last turn since this is not enough for the required decrease in .)
If her last turn was (1, 2), then just before doing it we had and . This means that in one of her turns the total change in was not . However, in that case we have seen that , a contradiction.
If her last turn was (2, 1), then just before doing it we had and or . So she must have made at least two turns with the change of being +1 or -2 or at least one step with the change of being +2 or -1. In both cases, consulting the table, we get an increase of at least 2 in , a contradiction.
Note 1: If Anna is allowed to make at most three steps at each turn, then she actually has a winning strategy.
Note 2: If 2019 is replaced by , then Bob has a winning strategy if and only if . □
Final answer
No; Bob has a winning strategy.
Techniques
Games / greedy algorithmsInvariants / monovariants