文件名称:24point
介绍说明--下载内容均来自于网络,请自行研究使用
本程序解决的通用问题是输入四个数,通过四则运算获取指定解的问题。
典型的是四数求二十四问题(算24点问题,又叫4张牌求24点问题,求24问题)。比如说给出7,-7,3,-3如何用+-*/)(运算符号,不重复的利用这四个数求得结果为24?不要认为这类问题简单,它其实有16896种可能的排列方法 而且,即使不用括号也有成百上千种可能 甚至,你不知道它是否有解。显然,用人脑解决一般是很费时费力的。重复性强的脑力活动交给程序办比较合适。同时,也应一个作家教的同学的要求(她被这样的初中题目难倒过,偏偏网上很多这样的程序无法上负数),我特意编写了这个程序!
采用本程序可以瞬间求出所有解来,而且可以判断是否无解-This program is the general problems to solve four number input, through the arithmetic solution for the problem of specified.
The typical is number four for 24 problem (24 points, and the problem that four CARDS for 24 point problems for 24,... "). For example give 7, 7, 3, 3 how to use+-* /) (operation is not repeated use of symbols, the four number for the results for 24? Don t think this kind of problem is simple, it is actually 16896 possible and the arrangement of the method, even when they are not also has hundreds of thousands of parentheses may even, you don t know that it does have the solution. Obviously, the human brain with solving the general is very time-consuming. Repetitive strong mental activities to do more appropriate program. At the same time, also should be a writer to teach students requirements (she was such a junior high school subject, many online baffled happened this program can not negative), I especially on this program written!!!!!
This program can be
典型的是四数求二十四问题(算24点问题,又叫4张牌求24点问题,求24问题)。比如说给出7,-7,3,-3如何用+-*/)(运算符号,不重复的利用这四个数求得结果为24?不要认为这类问题简单,它其实有16896种可能的排列方法 而且,即使不用括号也有成百上千种可能 甚至,你不知道它是否有解。显然,用人脑解决一般是很费时费力的。重复性强的脑力活动交给程序办比较合适。同时,也应一个作家教的同学的要求(她被这样的初中题目难倒过,偏偏网上很多这样的程序无法上负数),我特意编写了这个程序!
采用本程序可以瞬间求出所有解来,而且可以判断是否无解-This program is the general problems to solve four number input, through the arithmetic solution for the problem of specified.
The typical is number four for 24 problem (24 points, and the problem that four CARDS for 24 point problems for 24,... "). For example give 7, 7, 3, 3 how to use+-* /) (operation is not repeated use of symbols, the four number for the results for 24? Don t think this kind of problem is simple, it is actually 16896 possible and the arrangement of the method, even when they are not also has hundreds of thousands of parentheses may even, you don t know that it does have the solution. Obviously, the human brain with solving the general is very time-consuming. Repetitive strong mental activities to do more appropriate program. At the same time, also should be a writer to teach students requirements (she was such a junior high school subject, many online baffled happened this program can not negative), I especially on this program written!!!!!
This program can be
(系统自动生成,下载前可以参看下载内容)
下载文件列表
24point.cpp