-
一个很难的数学问题(智力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
-
Using Java Netbean 6.1 to create a white board application. This application can...
Using Java Netbean 6.1 to create a white board application. This application can demo how to use Java beans.
- 2022-05-09 06:25:30下载
- 积分:1
-
EOS权限管理,用户组织机构数据库初始化
EOS权限管理,用户组织机构数据库初始化-EOS rights management, user organizations to initialize the database
- 2022-02-15 16:01:43下载
- 积分:1
-
java cài đ ặ t apriori
java cà i đ ặ t apriori
- 2022-10-17 15:00:04下载
- 积分:1
-
A simple demonstration JMenuBar/JMenu/JMenuItem example, allows you to use famil...
一个简单的演示JMenuBar/JMenu/JMenuItem的例子,让你熟练Java的基本控件使用-A simple demonstration JMenuBar/JMenu/JMenuItem example, allows you to use familiar Java" s basic control
- 2022-05-09 11:29:53下载
- 积分:1
-
简单的JAVA课程设计,虽然简单了点, 我可是很认真做的
简单的JAVA课程设计,虽然简单了点, 我可是很认真做的-simple Java curriculum design, a simple, but I do very seriously
- 2022-03-20 05:33:30下载
- 积分:1
-
J2ME的一个简单例子,
J2ME的一个简单例子,-J2ME a simple example,
- 2022-05-24 04:02:20下载
- 积分:1
-
a java database connectivity sqlserver2000 the source, a huge number of people n...
一个java连接sqlserver2000数据库的源码,非常多人需要用-a java database connectivity sqlserver2000 the source, a huge number of people needed
- 2022-03-10 02:01:29下载
- 积分:1
-
Tomcat和java源代码解释。网络技术的发展为学习…
Tomcat与Java.Web开发技术详解源代码,对初学网络编程的工作者而言有所帮助。-Tomcat and Java.Web source code explain the development of technology for learning network programming in terms of the workers be helpful.
- 2023-01-13 09:15:04下载
- 积分:1
-
打飞碟程序,用JAVA编写!还比较号玩!
打飞碟程序,用JAVA编写!还比较号玩!-fight UFO procedures, prepared using JAVA! Still, playing!
- 2022-06-15 05:28:26下载
- 积分:1