资 源 简 介
滚球游戏意智游戏
问题描述
有八个小洞,序号和分布位置如图。小球从A、B、C(即洞号0、1、2)三个位置之一滚下。如果洞的状态为0时,球向左滚;如果洞的状态为1时,球向右滚。凡是球滚过的洞,状态取反(既由1变0,由0变1)。
现用8位二进制数依次从左到右表示八个小洞的状态。
例: 图中的初始状态为 00000101 时,最多滚入3个球时有
从C洞滚入一小球状态为 ――――> 00101111
从B洞滚入一小球状态为 ――――> 01111011
从A洞滚入一小球状态为 ――――> -bowls game Italy-game description eight holes and serial number and distribution figure. Small ball from the A, B, C (hole No. 0,1,2), one of the fallen three locations. If the state of the hole 0:00 a.m., the ball rolling left; If the state of the hole 1:00, the ball rolling right. Whatever strain at the hole, from the anti-state (both from a variable 0, 0 Variable 1). Now with eight followed by the binary number eight hole, said whatever the state. Cases : Figure the initial states of 00000101, three roll-up ball from C hole rolled over a small ball of----> 00101111 B hole rolled over from one state to the small ball----> 01111011 from A hole rolled over a small ball of---->