文件名称:FiveNum
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2013-04-22
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- 杨*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
任意一个5位数,比如:34256,把它的各位数字打乱,重新排列,可以得到一个最大的数:65432,一个最小的数23456。求这两个数字的差,得:41976,把这个数字再次重复上述过程(如果不足5位,则前边补0)。如此往复,数字会落入某个循环圈(称为数字黑洞)。
比如,刚才的数字会落入:[82962, 75933, 63954, 61974] 这个循环圈。-Any one of 5 digits, for example: 34256, put it in the number you are upset, rearrange, can get a maximum number: 65432, a minimum number of 23456. The sum of the two numbers, have: 41976, put the digital repeat the above process (if less than 5, the front 0). So back and forth, digital will fall into a circle (called digital black hole).
For example, just numbers will fall into: [82962, 75933, 63954, the 61974] cycle.
比如,刚才的数字会落入:[82962, 75933, 63954, 61974] 这个循环圈。-Any one of 5 digits, for example: 34256, put it in the number you are upset, rearrange, can get a maximum number: 65432, a minimum number of 23456. The sum of the two numbers, have: 41976, put the digital repeat the above process (if less than 5, the front 0). So back and forth, digital will fall into a circle (called digital black hole).
For example, just numbers will fall into: [82962, 75933, 63954, the 61974] cycle.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
FiveNum.java