-
一个很难的数学问题(智力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
-
J2ME的教程,包含概念解析、MIDP2.0编程、访问网络服务和数据
J2ME的教程,包含概念解析、MIDP2.0编程、访问网络服务和数据-About J2ME
- 2022-05-14 03:10:57下载
- 积分:1
-
使用ajaxanywhere的一个小的demo,个人感觉很不错,大家可以研究一下...
使用ajaxanywhere的一个小的demo,个人感觉很不错,大家可以研究一下
- 2022-01-25 18:56:58下载
- 积分:1
-
肥皂的源码包
soap源码包,主要提供项目需要SOAP协议开发-soap source package
- 2022-04-11 19:30:46下载
- 积分:1
-
Very simple calculator, with three one
非常简单的计算器,用三个单行文本和一个
按钮,可以计算加法。-Very simple calculator, with three one-way text and a button, can calculate the additive.
- 2022-01-25 17:18:29下载
- 积分:1
-
Java P2P技术内幕,这本书的配套源码。
Java P2P技术内幕,这本书的配套源码。-《Java P2P technology inside》 source code.
- 2022-01-26 03:18:29下载
- 积分:1
-
JBuilder内存车道控制插件的使用
JBuilder里监控内存使用情况的插件-JBuilder Memory Lane control the use of plug-in
- 2023-08-22 02:45:03下载
- 积分:1
-
使用javamail接收邮件,在DOS命令窗口中可直接编译运行该程序!...
使用javamail接收邮件,在DOS命令窗口中可直接编译运行该程序!
- 2022-03-14 15:41:15下载
- 积分:1
-
JAVA下简单操作数据库的经典例子,一些简单的数据库操作方法
JAVA下简单操作数据库的经典例子,一些简单的数据库操作方法-JAVA database under the simple classic example of some simple methods of database operations
- 2022-07-18 05:34:44下载
- 积分:1
-
用SWT 实现的截屏程序。源码中有注释,拷贝到eclipse plug
用SWT 实现的截屏程序。源码中有注释,拷贝到eclipse plug-in工程中,在eclipse环境下独立运行。
- 2023-04-30 23:15:03下载
- 积分:1