文件名称:dm
介绍说明--下载内容来自于网络,使用问题请自行百度
将一个四位数分成两段得到的两个两位数,它们的和的平方等于原数,具有这种性质的数没有特殊分布规律,因此采用穷举法对所有四位数进行判断,从而筛选出符合这种性质的四位数。具体算法是任取一个四位数,将其截为两部分,前两位为a,后两位为b,然后套用性质公式计算并判断。-Two two-digit number will get a four-digit divided into two sections, the square of their sum is equal to the original number of this nature there are no special distribution, so a brute-force method to judge all four digits, thus screened-digit meets this nature. Specific algorithm is either to take a four-digit, it cut into two parts, the first two of a, after two of b, and then apply the formula to calculate and determine the nature.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
dm.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.