文件名称:求具有abcd=(ab+cd)2性质的四位数
介绍说明--下载内容来自于网络,使用问题请自行百度
3025这个数具有一种独特的性质:将它平分为二段,即30和25,使之相加后求平方,即(30+25)2,恰好等于3025本身。请求出具有这样性质的全部四位数。
*题目分析与算法设计
具有这种性质的四位数没有分布规律,可以采用穷举法,对所有四位数进行判断,从而筛选出符合这种性质的四位数。具体算法实现,可任取一个四位数,将其截为两部分,前两位为a,后两位为b,然后套用公式计算并判断。
-3025, the figure has a unique character : it divided into noticing, 30 and 25 to make it add up for square, or (30 25) 2, is equal to 3025 itself. Requests of this nature out with the full four-digit. * Subject algorithm design and analysis of this nature is not the four-digit distribution, exhaustive method can be used for all four-digit judgment, thereby screening out with the four-digit of this nature. The specific algorithm can be admitted as a four-digit, its deadline for the two parts, with two of a, b for two after, and then use the formula and judgment.
*题目分析与算法设计
具有这种性质的四位数没有分布规律,可以采用穷举法,对所有四位数进行判断,从而筛选出符合这种性质的四位数。具体算法实现,可任取一个四位数,将其截为两部分,前两位为a,后两位为b,然后套用公式计算并判断。
-3025, the figure has a unique character : it divided into noticing, 30 and 25 to make it add up for square, or (30 25) 2, is equal to 3025 itself. Requests of this nature out with the full four-digit. * Subject algorithm design and analysis of this nature is not the four-digit distribution, exhaustive method can be used for all four-digit judgment, thereby screening out with the four-digit of this nature. The specific algorithm can be admitted as a four-digit, its deadline for the two parts, with two of a, b for two after, and then use the formula and judgment.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
求具有abcd=(ab+cd)2性质的四位数.txt
www.dssz.com.txt
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.