计算机编程题 - 找最小偶数位对称平方数 (ZT)

来源: 2010-12-09 09:50:01 [旧帖] [给我悄悄话] 本文已被阅读:

对称数是指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