Hamza and Majid play a game on a horizontal white board. They alternate turns, with Hamza going first. A legal move for Hamza consists of painting three unit squares forming a horizontal rectangle. A legal move for Majid consists of painting three unit squares forming a vertical rectangle. No one of the two players is allowed to repaint already painted squares. The last player to make a legal move wins. Which of the two players, Hamza or Majid, can guarantee a win no matter what strategy his opponent chooses and what is his strategy to guarantee a win?
, 2015
Solution
Hamza has a winning strategy.
We divide the rectangle into squares of size and a small rectangle of size .
Hamza will play as follows: He will paint at each time a horizontal rectangle in a white square (all unit squares in this square are not colored yet) until he cannot continue to do so. In each step, Majid can only paint a rectangle in a square of size or in the small rectangle . So the number of squares that will be used by a rectangle of Hamza is at least .
Note that, whenever Hamza paints a horizontal in a square then Majid cannot paint a vertical in such a square. Hence, Hamza can play at least steps. Since the game ends after at most steps so Majid can play at most steps. In other words, Hamza has a winning strategy.
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.