Arithmetic Expressions
By using each of the digits from the set, , exactly once, and making use of the four arithmetic operations and brackets/parentheses, it is possible to form different positive integer targets.
For example,
Note that concatenations of the digits, like , are not allowed.
Using the set, , it is possible to obtain thirty-one different target numbers of which is the maximum, and each of the numbers to can be obtained before encountering the first non-expressible number.
Find the set of four distinct digits, , for which the longest set of consecutive positive integers, to , can be obtained, giving your answer as a string: .
算术表达式
使用集合中每个数字恰好一次,再加上四则运算和括号,可以表示许多不同的整数。
例如:
注意不允许把数字连起来使用,比如。
使用集合,可以表示出个不同的数,其中最大值是,并且可以连续表示至之间的所有数。
考虑所有四个不同数字构成的集合,求其中可以从开始连续表示最多个正整数的集合,并以字符串的形式给出你的答案。
Gitalking ...