Daily

Random

Practice set

Baltic Way 1996 · Problem 19

Combinatorics

Four heaps contain 38, 45, 61, and 70 matches respectively. Two players take turns choosing any two of the heaps and take some non-zero number of matches from one heap and some non-zero number of matches from the other heap. The player who cannot make a move, loses. Which one of the players has a winning strategy?

Change pool

When you’re ready

Review material becomes available with the next Daily.

Review

Topics

Games and strategies · Algorithms and processes · Invariants and monovariants

Solutions

Solution

Solution:

The first player wins by making moves so that the opponent must face positions of the form (a,a,a,b)(a, a, a, b), where a≤ba \leq b.

Contest context

Results from Baltic Way 1996

10 teams

Mean score
5.0 / 5
Scores of 4 or 5
10 / 10
Estonia
5 / 5

Score distribution

00
10
20
30
40
510
All team scores
TeamScore
Poland5 / 5
Latvia5 / 5
Sweden5 / 5
Denmark5 / 5
St. Petersburg5 / 5
Finland5 / 5
Norway5 / 5
Lithuania5 / 5
Estonia5 / 5
Iceland5 / 5