Esim - [更新][问题3]秘密组织主席竞争
Login:
Password:

Forgot password Register

Article


15
   
Report


[问题3]秘密组织主席竞争

有人反映之前出的两个问题都不难,下面搞个难一点的,至少我还没想清楚。答案最优者将成为秘密组织的主席。

问题:用加减乘除运算符(使用次数不限)和任意数字计算出1067,要求使用的数字之和最小。

更新:不能使用负数啦,可以使用括号。

例子:以计算20为例。20等于3*3*2+2,数字和为3+3+2+2=10。当然20还等于4*5,数字和为4+5=9。后一种分解优于前一种,并且应该是最优的了。

说明:D1067零点为截至期限,请在此之前私信我答案。需要给出数字之和以及计算方式。本问题不限于组织内成员参加,如果有多个最优答案取时间靠前者。

PS:先前两个问题的答案:4个平面最多把空间分为15部分;22=(3/2-1+5)*4,附上某位高人给出的求解程序:
def a(x):
if len(x) == 1:
return x[0]
op = {1:jia,2:jian,3:cheng,4:chu}
ap = op[x[-2]](x[-1],x[-3])
x = x[:-3]
x.append(ap)
return a(x)

def jia(a,b):
return a+b
def jian(a,b):
return a-b
def cheng(a,b):
return a*b
def chu(a,b):
return a / b
x1 = range(1,6)
x2 = range(1,5)
p = [[a1,b1,a2,b2,a3,b3,a4,b4,a5] for (a1,a2,a3,a4,a5) in ((a,b,c,e,d) for a in x1 for b in x1 if b not in [a] for c in x1 if c not in [a,b] for d in x1 if d not in [a,b,c] for e in x1 if e not in [a,b,c,d]) for (b1,b2,b3,b4) in ((a,b,c,d) for a in x2 for b in x2 if b not in [a] for c in x2 if c not in [a,b] for d in x2 if d not in [a,b,c])]

for i in p:
if a(i) == 22:
print(i)
想知道是谁的话可以进秘密组织群问哈!


Previous article:
帝国贸易正式运营 (11 years ago)

Next article:
【重发】D1063作答情况 (11 years ago)

ESim
or
Register for free:
Only letters, numbers, underscore and space are allowed (A-Z,a-z,0-9,_,' ')
Show more

By clicking 'Sign Up!', you agree to the Rules and that you have read the Privacy Policy.

About the game:


USA as a world power? In E-Sim it is possible!

In E-Sim we have a huge, living world, which is a mirror copy of the Earth. Well, maybe not completely mirrored, because the balance of power in this virtual world looks a bit different than in real life. In E-Sim, USA does not have to be a world superpower, It can be efficiently managed as a much smaller country that has entrepreneurial citizens that support it's foundation. Everything depends on the players themselves and how they decide to shape the political map of the game.

Work for the good of your country and see it rise to an empire.

Activities in this game are divided into several modules. First is the economy as a citizen in a country of your choice you must work to earn money, which you will get to spend for example, on food or purchase of weapons which are critical for your progress as a fighter. You will work in either private companies which are owned by players or government companies which are owned by the state. After progressing in the game you will finally get the opportunity to set up your own business and hire other players. If it prospers, we can even change it into a joint-stock company and enter the stock market and get even more money in this way.


In E-Sim, international wars are nothing out of the ordinary.

"E-Sim is one of the most unique browser games out there"

Become an influential politician.

The second module is a politics. Just like in real life politics in E-Sim are an extremely powerful tool that can be used for your own purposes. From time to time there are elections in the game in which you will not only vote, but also have the ability to run for the head of the party you're in. You can also apply for congress, where once elected you will be given the right to vote on laws proposed by your fellow congress members or your president and propose laws yourself. Voting on laws is important for your country as it can shape the lives of those around you. You can also try to become the head of a given party, and even take part in presidential elections and decide on the shape of the foreign policy of a given state (for example, who to declare war on). Career in politics is obviously not easy and in order to succeed in it, you have to have a good plan and compete for the votes of voters.


You can go bankrupt or become a rich man while playing the stock market.

The international war.

The last and probably the most important module is military. In E-Sim, countries are constantly fighting each other for control over territories which in return grant them access to more valuable raw materials. For this purpose, they form alliances, they fight international wars, but they also have to deal with, for example, uprisings in conquered countries or civil wars, which may explode on their territory. You can also take part in these clashes, although you are also given the opportunity to lead a life as a pacifist who focuses on other activities in the game (for example, running a successful newspaper or selling products).


At the auction you can sell or buy your dream inventory.

E-Sim is a unique browser game. It's creators ensured realistic representation of the mechanisms present in the real world and gave all power to the players who shape the image of the virtual Earth according to their own. So come and join them and help your country achieve its full potential.


Invest, produce and sell - be an entrepreneur in E-Sim.


Take part in numerous events for the E-Sim community.


| Terms of Service | Privacy policy | Support | Alpha | Luxia | Primera | Secura | Suna | Sora | Magna | Pangea | e-Sim: Countryballs Country Game
PLAY ON