返回题库

广场跑

Square Run

专题
Brainteaser / 脑筋急转弯
难度
L6

题目详情

A queen is located at a1 and wishes to travel to h8 via a series of one or more moves. (These must be legal queen’s moves.)

After each move, the numbers on each of the squares change.

If the move is between two spaces which sum to a perfect square, every number on the board decreases by 1 after the move. Otherwise, each number decreases by 5. (The queen may stop on a square more than once.)

What is the largest sum you can obtain from the squares you visit over each move in your journey?

Please send us your sum and your list of moves.

Example: a5, a3, b3, d1, a1, d4, h8, a1, h8 would have a sum of 0 + 26 + 29 + 12 – 7 + 17 + 20 – 10 + 18 = 105.

解析

女王之旅的最大金额是305。原来有 达到这样分数的路径有 36 条,其中之一是:

c3、c7、d8、d1、g4、h3、a3、a4、e8、f7、b3、a3、e7、e5、b5、c4、f4、d4、f2、c2、 c8、e8、b5、c4、c2、b3、f7、e8、h8、

得分为 8 + 29 + 21 + 16 + 21 + 16 + 21 + 5 + 21 + 16 + 21 + 16 + 1 + 9 + 17 + 9 + 8 + 9 + 8 + 9 – 7 + 8 + 9 + 1 + 4 + 6 – 1 + 2 + 2 = 305


Original Explanation

The largest sum possible for the queen’s journey is 305. It turns out that there are 36 paths that achieve such a score, one of which is:

c3, c7, d8, d1, g4, h3, a3, a4, e8, f7, b3, a3, e7, e5, b5, c4, f4, d4, f2, c2, c8, e8, b5, c4, c2, b3, f7, e8, h8,

which scores as 8 + 29 + 21 + 16 + 21 + 16 + 21 + 5 + 21 + 16 + 21 + 16 + 1 + 9 + 17 + 9 + 8 + 9 + 8 + 9 – 7 + 8 + 9 + 1 + 4 + 6 – 1 + 2 + 2 = 305.