对称数是指12321之类的、颠倒书写顺序仍不变的自然数。对称平方数是指它是对称数同时还是某个自然数的平方。有人证实698896是最小偶数位对称平方数(=836^2)。请各位高手编一程序,找出另外两个最小偶数位对称平方数。
--- This is a good question by '巡天剑客', I'm too late to back here. But, my SAS Programm used time 1:36:17 to got 4 solutions. They are as following:
Digit=6 Root=836 Symmetric Square=698896
Digit=12 Root=798644 Symmetric Square=637832238736
Digit=16 Root=64030648 Symmetric Square=4099923883299904
Digit=22 Root=83163115486 Symmetric Square=6916103777337773016196
计算机编程题 - 找最小偶数位对称平方数 (ZT)
所有跟帖:
•
回复:计算机编程题 - 找最小偶数位对称平方数 (ZT)
-Blue_Diamond-
♂
(3518 bytes)
()
12/10/2010 postreply
00:59:51
•
回复:回复:计算机编程题 - 找最小偶数位对称平方数 (ZT)
-Blue_Diamond-
♂
(5181 bytes)
()
12/12/2010 postreply
00:33:11
•
回复:回复:回复:计算机编程题 - 找最小偶数位对称平方数 (ZT)
-Blue_Diamond-
♂
(6509 bytes)
()
12/14/2010 postreply
09:47:50
•
最小的显然是0;其次是1,4,9。
-qiasini-
♂
(21 bytes)
()
12/11/2010 postreply
22:21:55
•
最小偶数位对称平方数,您那个是奇数位。
-皆兄弟也-
♂
(0 bytes)
()
12/12/2010 postreply
00:41:29
•
484,
-commentate-
♂
(0 bytes)
()
12/18/2010 postreply
05:44:29
•
7744
-commentate-
♂
(0 bytes)
()
12/18/2010 postreply
05:51:07
•
40804
-commentate-
♂
(0 bytes)
()
12/18/2010 postreply
05:53:24
•
44944
-commentate-
♂
(0 bytes)
()
12/18/2010 postreply
05:54:15
•
69696
-commentate-
♂
(0 bytes)
()
12/18/2010 postreply
05:55:41
•
4008004
-commentate-
♂
(0 bytes)
()
12/18/2010 postreply
06:03:19