Balti Tee 2010 · Ülesanne 9
Kombinatoorika
There is a pile of 1000 matches. Two players each take turns and can take 1 to 5 matches. It is also allowed at most 10 times during the whole game to take 6 matches, for example 7 exceptional moves can be done by the first player and 3 moves by the second and then no more exceptional moves are allowed. Whoever takes the last match wins. Determine which player has a winning strategy.
Kui oled valmis
Ülevaatematerjal muutub kättesaadavaks järgmise päevaülesannete komplektiga.
Ülevaade
Teemad
Mängud ja strateegiad · Algoritmid ja protsessid · Invariandid ja monovariandid
Lahendused
Lahendus
Let be the number of the remaining exceptional moves in the current position (at the beginning of the game and decreases during the game). The winning strategy of the second player is the following. After his move the number of matches in the pile must have the form , where , or , where (observe that for ).
At the beginning of the game the initial number of matches agrees with this strategy.
What happens during two consecutive moves?
Consider the case first. If the first player takes matches (and hence is not changing during his move) then the second player takes matches. So players take matches together and the pile contains now matches.
Võistluse kontekst
Balti Tee tulemused 2010
10 võistkonda
- Keskmine tulemus
- 2,5 / 5
- 4 või 5 punkti
- 5 / 10
- Eesti
- 4 / 5
Punktijaotus
Kõigi võistkondade punktid
| Võistkond | Punktid |
|---|---|
| Poland | 0 / 5 |
| Lithuania | 5 / 5 |
| Germany | 1 / 5 |
| Latvia | 5 / 5 |
| Denmark | 5 / 5 |
| Sweden | 5 / 5 |
| Estonia | 4 / 5 |
| Norway | 0 / 5 |
| Finland | 0 / 5 |
| Iceland | 0 / 5 |