-
一个很难的数学问题(智力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
-
This is Style Swither
This is Style Swither
- 2023-04-17 08:20:03下载
- 积分:1
-
移动平台例程反向顺序
移动misc平台反向订购例程-mobile platform routines reverse order
- 2022-04-13 00:08:06下载
- 积分:1
-
jquery example of writing a grid to achieve a change add or delete search of all...
jquery 写的一个grid 例子,实现了增删改查的所有操作。-jquery example of writing a grid to achieve a change add or delete search of all operations.
- 2022-06-18 21:08:11下载
- 积分:1
-
Starting Struts 2, latest book
Starting Struts 2, latest book
- 2022-11-02 04:35:07下载
- 积分:1
-
java+jsp华源网校+西部软件jsp版
java+jsp华源网校+西部软件jsp版
-java+ jsp School Worldbest+ western jsp software version
- 2022-09-27 05:10:03下载
- 积分:1
-
小型网络服务器,你可以做一个简单的发送和接收功能,java…
小型网络服务器,可以执行简单的发送和接收功能,用JAVA编程语言开发
- 2022-03-14 13:09:22下载
- 积分:1
-
a procedure in which the size of web pages control procedures
一个在java程序中自动控制web页面大小的程序-a procedure in which the size of web pages control procedures
- 2022-01-25 22:26:17下载
- 积分:1
-
主要是介绍eclipse的安装与及其的使用
主要是介绍eclipse的安装与及其的使用-Is introduced and the eclipse of the installation and use of
- 2022-02-14 05:33:02下载
- 积分:1
-
是用JAVA做的一个MP3的源代码
是用JAVA做的一个MP3的源代码-do with Java is a MP3 source code
- 2022-04-27 10:42:28下载
- 积分:1