当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。
1. Dice with six faces as shown in Figure 6 are used in the puzzle.
2. With twenty seven such dice, a 3 * 3 * 3 cube is built as shown in Figure 7.
3. When building up a cube made of dice, the sum of the numbers marked on the faces of adjacent dice that are placed against each other must be seven (See Figure 8). For example, if one face of the pair is marked "2", then the other face must be "5".
4. The top and the front views of the cube are partially given, i.e. the numbers on faces of some of the dice on the top and on the front are given (See Figure 9).
5. The goal of the puzzle is to find all the plausible dice arrangements that are consistent with the given top and front view information.
N
Dataset1
Dataset2
: : :
DatasetN
T11 T12 T13
T21 T22 T23
T31 T32 T33
F11 F12 F13
F21 F22 F23
F31 F32 F33
4 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 4 3 3 5 2 2 4 3 3 6 1 1 6 1 1 6 1 0 1 0 0 0 2 0 0 0 0 5 1 2 5 1 2 0 0 0 2 0 0 0 3 0 0 0 0 0 0 0 0 0 0 3 0 1
27 24 32 33 36 0
时间上限 | 内存上限 |
5000 | 65536 |