對稱數是指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