-
一个很难的数学问题(智力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
-
你首先要在优酷网上找到你想要的视频地址(请参考如何寻找视频链接地址 ),这个代码是不能自动播放的。
这是不自动播放的视频地址(带有播放器):...
你首先要在优酷网上找到你想要的视频地址(请参考如何寻找视频链接地址 ),这个代码是不能自动播放的。
这是不自动播放的视频地址(带有播放器):
- 2022-03-19 02:59:19下载
- 积分:1
-
取得WEB客户机器主机名信息。
取得WEB客户机器主机名信息。-made mainframe machines Information.
- 2022-02-15 00:22:19下载
- 积分:1
-
一些java 的小项目
一些java 的小项目-some small projects
- 2022-06-22 05:32:52下载
- 积分:1
-
PSO on improving the source, than for the regulation of the use of reservoirs, o...
关于改进pso的源程序,比用于水库的调节运用,对优化水库调节的优化很有用-PSO on improving the source, than for the regulation of the use of reservoirs, optimization of reservoir regulation on the optimization of very useful
- 2023-07-31 05:30:03下载
- 积分:1
-
学习EJB的很好范例
学习EJB的很好范例-learning are very good examples of EJB
- 2022-11-21 16:10:04下载
- 积分:1
-
Swing组件的可视化设计程序
Swing组件的可视化设计程序-Swing components of the design process visualization
- 2022-12-09 03:10:03下载
- 积分:1
-
分布式对象
分布式对象-如何使用RMI和CORBA,在java中-Distributed Object-how to use RMI and CORBA, which in java
- 2022-05-25 07:16:06下载
- 积分:1
-
一个java的局域网聊天室软件,可以实现单人对单人或单人对多人的聊天。...
一个java的局域网聊天室软件,可以实现单人对单人或单人对多人的聊天。-a java chat room LAN software, can achieve single pair of single or single people to chat.
- 2022-02-14 03:07:23下载
- 积分:1
-
曼宁_
《Java 3D编程》的源代码,包括说明文件-Manning_-_Java_3D_Programming
sample source code
- 2022-12-09 22:15:03下载
- 积分:1