做测试 登录 English
← 练习 1,265 →
搜索
跳转
找到 {{searchResults.length}} 条与“{{searchWords}}”相关的结果 没有找到与“{{searchWords}}”相关的结果 × 返回目录
目录 · 按章节
基础代数 (10)
统计 (13)
方程与不等式 (42)
函数与三角 (30)
多项式 (34)
数列 (34)
指数与对数 (30)
最值 (18)
复数 (34)
二次曲线(圆锥曲线) (22)
逻辑 (14)

练习及解答

练习 1,265
Arjun and Beth take turns removing one brick or two adjacent bricks from one wall among several walls of bricks (one brick tall), gaps possibly creating new walls. Arjun plays first, and the player who removes the last brick wins. For which starting configuration does Beth have a winning strategy? \[(7,1,1),\quad(7,2,1),\quad(7,3,1),\quad(7,3,2),\quad(7,4,2)\]
← 返回第 1,265 题
解答
  1. As in the problem, start with $g(0)=0$; for a single wall of $n$ bricks the table lists the positions one move can reach (first removing one brick, then two adjacent bricks), their values $g(a)\oplus g(b)$, and the smallest value missing from that list:
    \begin{center}
    \begin{tabular}{cllc}
    $n$ & reachable positions & their values & $g(n)$\\ \hline
    $1$ & empty & $0$ & $1$\\
    $2$ & $1$, empty & $1,0$ & $2$\\
    $3$ & $2$, $1+1$, $1$ & $2,0,1$ & $3$\\
    $4$ & $3$, $1+2$, $2$, $1+1$ & $3,3,2,0$ & $1$\\
    $5$ & $4$, $1+3$, $2+2$, $3$, $1+2$ & $1,2,0,3,3$ & $4$\\
    $6$ & $5$, $1+4$, $2+3$, $4$, $1+3$, $2+2$ & $4,0,1,1,2,0$ & $3$\\
    $7$ & $6$, $1+5$, $2+4$, $3+3$, $5$, $1+4$, $2+3$ & $3,5,3,0,4,0,1$ & $2$
    \end{tabular}
    \end{center}
  2. XORs: $(7,1,1)\to2$, $(7,2,1)\to1$, $(7,3,1)\to2\oplus3\oplus1=0$, $(7,3,2)\to3$, $(7,4,2)\to1$.
  3. Only $\boxed{(7,3,1)}$ has XOR $0$, so Beth wins there.
搜索 跳转 上一题      下一题

联系我们

谢谢!您的消息已发送。
按年份