-
一个很难的数学问题(智力140以下勿进)
旧版Java程序设计Page97 3.12题
庞涓拿到两个整数(2到99之间)之和,孙膑拿到两个整数之积。下面...
一个很难的数学问题(智力140以下勿进)
旧版Java程序设计Page97 3.12题
庞涓拿到两个整数(2到99之间)之和,孙膑拿到两个整数之积。下面是一段很有趣的对话。
庞涓说:我不知道这两个整数是多少,但我肯定你也不知道。
孙膑说:我本来不知道这两个整数是多少。但既然你这么说,那我现在知道了。
庞涓说:哦,那我也知道了。
要求输出所有可能的结果,包括这两个整数之和以及这两个整数之积。
程序设计思路:通过庞涓和孙膑的对话,逐步缩小和的范围,直至得出答案!-A difficult mathematical problem (intelligence not to enter the following 140) old Java programming Page97 3.12 title Pang Juan got two integers (2 to 99) the sum, Sun Bin 2 integers to get the product. Here is a very interesting dialogue. Pang Juan wrote: I do not know how much these two integers, but I am sure you do not know. Sun Bin said: I did not know how much of these two integers. However, as you say so, then I now know. Pang Juan said: Oh, I know. Require the output of all possible results, including the sum of these two integers, as well as the product of these two integers. Program design ideas: By Pang Juan and Sun Bin dialogue, gradually narrowing the scope of, and until the answer!
- 2022-01-26 08:06:00下载
- 积分:1
-
一个简单的文本编辑框,可以打开文件、保存文件、新建文件并对文本进行编辑等...
一个简单的文本编辑框,可以打开文件、保存文件、新建文件并对文本进行编辑等-a simple text editing box, can open the file, save the file, the new documents and text editing
- 2022-01-22 16:15:15下载
- 积分:1
-
数据结构中的迷宫算法,演示程序用java实现
数据结构中的迷宫算法,演示程序用java实现-data structure of the maze algorithm, demo program using java to achieve
- 2022-08-08 18:46:17下载
- 积分:1
-
java解决数独问题,这个程序用的是amb。可以一看,但是核心依然是穷举...
java解决数独问题,这个程序用的是amb。可以一看,但是核心依然是穷举-java to solve Sudoku problems, this procedure is used amb. Can see, but the core remains the exhaustive
- 2023-03-25 09:35:03下载
- 积分:1
-
JAVA factory methods, the use of abstract factories. Is a very good learning pro...
JAVA 工厂方法,抽象工厂的运用。
是很好的学习程序。
结合了WOW魔兽世界-JAVA factory methods, the use of abstract factories. Is a very good learning process. Combination of WOW World of Warcraft
- 2022-04-06 10:12:04下载
- 积分:1
-
TCP Client/server aplication
TCP Client/server aplication
- 2022-03-23 12:16:49下载
- 积分:1
-
一个简单ssh+extjs的人力资源管理系统(转载),数据库是用mysql5.0,可以直接跑起来...
一个简单ssh+extjs的人力资源管理系统(转载),数据库是用mysql5.0,可以直接跑起来-Ssh+ extjs a simple human resources management system (reproduced), the database is mysql5.0, can run up
- 2022-01-21 20:05:31下载
- 积分:1
-
主要通过JAVA 来实现图象的处理,程序可靠
通过实现
主要通过JAVA 来实现图象的处理,程序可靠
通过实现-mainly through Java to realize image processing, through the realization of reliable procedures
- 2022-05-06 03:48:02下载
- 积分:1
-
一个简单的Java并发系统动态测试工具
一个简单的Java并发系统动态测试工具-a simple system with dynamic Java testing tools
- 2022-05-20 18:09:36下载
- 积分:1
-
series with the very useful
用java编的,很有用的-series with the very useful
- 2023-01-05 20:00:04下载
- 积分:1