1729: 【CSP循环】寻找雷劈数▅

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:8 Solved:7

Description

把整数 lns="http://www.w3.org/1998/Math/MathML">3025 从中剪开分为 lns="http://www.w3.org/1998/Math/MathML">30 和 lns="http://www.w3.org/1998/Math/MathML">25 两个数,此时再将这两数之和平方,计算结果又等于原数。

lns="http://www.w3.org/1998/Math/MathML">(30+25)×(30+25)=55×55=3025 ,这样的数叫“雷劈数”。

求所有符合这样条件的四位数。lns="http://www.w3.org/1998/Math/MathML">(ab+cd)×(ab+cd)=abcd

Output

若干行,每行一个雷劈数,从小到大输出。