-
一个很难的数学问题(智力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
-
java ee 教学评估系统
运用了一些框架,使用java编的系统。实现网页上可以登录,分学生,管理员,教师,可对教师评价,用SQL server数据库,可添加学生信息和教师信息。
- 2022-07-11 17:05:22下载
- 积分:1
-
jgraphx-master
jgraphx-master 开源的图形界面设计(jgraphx-master open source graphical interface design)
- 2012-11-30 12:41:12下载
- 积分:1
-
JPanel
JPanel
- 2022-01-26 07:08:13下载
- 积分:1
-
UVC
在android平台上开发的UVC摄像头的驱动,包括摄像头的拍照和录像功能,以及USB摄像头的自动识别(android system for uvs camera)
- 2020-11-07 22:39:49下载
- 积分:1
-
java程序,适合初学者,可编译运行,已测试
java程序,适合初学者,可编译运行,已测试-java procedures for beginners, the compiler can run, have tested
- 2022-02-11 16:49:50下载
- 积分:1
-
GS algorithm, can be very convenient to find the stable matching, functions from...
GS算法,可以十分方便的查找stable matching,功能不时很强大,十分适合java初学者-GS algorithm, can be very convenient to find the stable matching, functions from time to time very powerful, very suitable for beginners java
- 2023-06-25 06:55:02下载
- 积分:1
-
CPU 调度
这是一个有关 CPU 和计算其等待时间和执行时间的给定进程的日程安排的项目。
- 2022-01-22 15:45:21下载
- 积分:1
-
ssh2Test
一个用ssh2做的例子,简单易懂,适合初学java的来看看,这个例子不错(a ssh2 test)
- 2013-09-17 22:20:38下载
- 积分:1
-
Graph with GUI
使用户可以添加node,Edges,并且应用一些sorting算法(allows user to add, delete, and move node and edges in graph data structure and play with sorting algorithms)
- 2017-09-22 04:39:10下载
- 积分:1