-
一个很难的数学问题(智力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
-
学习是很好的例子,EJB
学习EJB的很好范例-learning are very good examples of EJB
- 2022-06-02 14:22:50下载
- 积分:1
-
Airline Reservation code & is very nice check it
Airline Reservation code & is very nice check it
- 2022-03-07 13:36:05下载
- 积分:1
-
good project for programmer,,
good project for programmer-good project for programmer,,
- 2022-04-29 19:46:53下载
- 积分:1
-
在网上下的eclipse abator插件自感觉不好用,
自已写了一个
基于oracle的,支持生成序列,pojo sqlmap.xml,dao dao...
在网上下的eclipse abator插件自感觉不好用,
自已写了一个
基于oracle的,支持生成序列,pojo sqlmap.xml,dao daointerface,生成字段的注释
四个基本方法,增删改查,
写的时候基于oracle11的,低版本的可能在到得字段注释
的地方会不兼容,自已改改或不加注释就可以了 -Under the Internet plug-ins from the eclipse abator feel bad use, self-written an oracle-based, pro-generated sequences, pojo sqlmap.xml, dao daointerface, generating field notes four basic methods, additions or deletions to change the investigation, written When oracle11 based, low-version may be a place to get the field notes would be incompatible change themselves to change with or without annotations can be a
- 2022-10-03 15:55:04下载
- 积分:1
-
推箱子游戏java手机程序的重要组成部分!!!
手机java游戏推箱子的重要部分代码-Sokoban game java mobile phone an important part of code! ! !
- 2023-05-05 09:35:03下载
- 积分:1
-
LaserPic.JAVA
LaserPic.JAVA
- 2022-03-06 20:02:11下载
- 积分:1
-
一个学生课程设计JAVA程序,虽然很简介但是也可以学到 一些 很 好的 东西...
一个学生课程设计JAVA程序,虽然很简介但是也可以学到 一些 很 好的 东西-students a curriculum design JAVA program, although very brief but also can learn some good things
- 2023-03-18 14:05:04下载
- 积分:1
-
这是一个简单的telnet协议简单实现,希望对大家有帮助。
这是一个简单的telnet协议简单实现,希望对大家有帮助。-telnet service,telnet service
telnet service
- 2022-01-25 22:23:38下载
- 积分:1
-
介绍了javascript的常用的函数,及语法规则,以及一些经典特效...
介绍了javascript的常用的函数,及语法规则,以及一些经典特效-Introduced the commonly used javascript functions, and grammatical rules, as well as some classic effects
- 2022-03-18 01:39:46下载
- 积分:1