原题目:
A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,
a2 + b2 = c2
For example, 32 + 42 = 9 + 16 = 25 = 52.
There exists exactly one Pythagorean triplet for which a + b + c = 1000.
Find the product abc.
for a=1:999
for b=1:999
for c=1:999
if a^2+b^2==c^2&&a<c&&b<c&&a<b&&a+b+c==1000
n=a*b*c
break
end
end
end
end
最后输出结果是31875000