-
一个很难的数学问题(智力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
-
操作系统课程设计中的CPU原码,采用JAVA编写
操作系统课程设计中的CPU原码,采用JAVA编写-Curriculum design in the operating system CPU original code, the use of JAVA to prepare
- 2022-04-27 22:01:58下载
- 积分:1
-
中间商系统
1 数据库 Access2000
2 版本 jsp2.0+servlet2.4+jstl1.1+Tomcat5.5.9+JDK1.5
中间商系统
1 数据库 Access2000
2 版本 jsp2.0+servlet2.4+jstl1.1+Tomcat5.5.9+JDK1.5
3 IDE工具 JBuilder2006
4 需要改的地方 com.wang.bean DataBean 的构造函数的数据库URL需要改成自己的环境-Brokering system Access20002 version 1 database jsp2.0+ Servlet2.4+ Jstl1.1+ Tomcat5.5.9+ JDK1.53 IDE tools JBuilder20064 need to change the place of the constructor com.wang.bean DataBean database URL need to change their own environment
- 2022-03-19 20:15:26下载
- 积分:1
-
Java中实现文本框限定输入一个字符,并且实现焦点的自动下移...
Java中实现文本框限定输入一个字符,并且实现焦点的自动下移-Java, to achieve a text box to enter a character limit, and the realization of the automatic focus down
- 2022-06-14 10:13:26下载
- 积分:1
-
国际象棋的代码!实现基本的下棋功能!!大家看了就知道了!简单的一个...
国际象棋的代码!实现基本的下棋功能!!大家看了就知道了!简单的一个-chess code!ke yi shi xian ji ben de xia guojixiangqi de gongneng!
- 2022-08-06 09:29:41下载
- 积分:1
-
小游戏,,,也挺好的
小游戏,,,也挺好的-small game, and a very good
- 2022-11-29 10:45:03下载
- 积分:1
-
爱一个小程序,图片提供一个在线预览,听,可用…
一个图铃下载的小程序,图片提供在线预览,试听,并提供下载到本地的功能。-Love a small program, picture provides an online preview, listen, and available for download to a local function.
- 2022-07-13 01:31:38下载
- 积分:1
-
一个自动查找目录文件夹下所有文件的小程序
一个自动查找目录文件夹下所有文件的小程序-an automatic search directory folder all documents small program
- 2022-01-24 17:27:27下载
- 积分:1
-
一个简单的职工数据库系统设计,如查找、添加、计算等
一个简单的职工数据库系统设计,如查找、添加、计算等-a simple employee database system design, such as search, add, and so
- 2022-06-15 01:36:13下载
- 积分:1
-
实现了回文数的查询,显示1到1000的回文数,自己查询数,程序可以做出判断!...
实现了回文数的查询,显示1到1000的回文数,自己查询数,程序可以做出判断!-Achieved a palindrome number of inquiries, show the palindrome 1-1000 number of their queries, procedures can be made to judge!
- 2022-06-16 06:22:44下载
- 积分:1