Problem 828
Numbers Challenge
It is a common recreational problem to make a target number using a selection of other numbers. In this problem you will be given six numbers and a target number.
For example, given the six numbers
This uses all six numbers. However, it is not necessary to do so. Another solution that does not use the
Define the score of a solution to be the sum of the numbers used. In the above example problem, the two given solutions have scores
When combining numbers, the following rules must be observed:
- Each available number may be used at most once.
- Only the four basic arithmetic operations are permitted:
, , , . - All intermediate values must be positive integers, so for example
is never permitted as a subexpression (even if the final answer is an integer).
The attached file number-challenges.txt contains
where the number before the colon is the target and the remaining comma-separated numbers are those available to be used.
Numbering the problems
Find
凑数挑战
从一些数出发,经过运算得到某个目标数,是一种常见的数学趣题。在本题中,每道题都有六个起始数和一个目标数。
例如,给定起始数
这个解用到了所有六个起始数,但这并不是必须的。另一个没有用到
记一个解的得分为所有用到的起始数之和。在如上的例子中,两个解的得分分别是
对于运算过程,我们作出如下规定:
- 每个起始数至多被使用一次。
- 只能使用四则运算:
、 、 、 。 - 所有中间结果必须是整数,因此如
之类的数不能作为中间结果(即使最终结果是整数)。
在文本文件number-challenges.txt中包含有
其中,冒号前的数是目标数,冒号后用逗号隔开的是起始数。
将这些题目编号为
求
Gitalking ...