Rita and Sam play the following game with n sticks on a table. Each must remove 1, 2, 3, 4 or 5 sticks at a time on altemate tums, and no stick that is removed is put back on the table.The one who removes the last stick(or sticks) from the table wins. If Rita goes first, which of the following is a value of n such that Sam can always win no matter how Rita plays?
7
10
11
12
16
【引用】
思路:sam最后要胜出——当时桌面上至多有5根——刚才Rita在拿的时候桌面上要不多不少正好六根,才能保证Rita死活拿不完(可以试下如果7根,Rita就会只拿1根留6根给sam,所以这个游戏的目标就是留6根给对手,让自己稳赢。所以选项中找6的倍数,选D:12
登录 或 注册 后可以参加讨论