問題
Find the only Pythagorean triplet, {a, b, c}, for which a + b + c = 1000.
英語
A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,
a^(2) + b^(2) = c^(2)For example, 3^(2) + 4^(2) = 9 + 16 = 25 = 5^(2).
There exists exactly one Pythagorean triplet for which a + b + c = 1000.
http://projecteuler.net/index.php?section=problems&id=9
Find the product abc.
解説
どうも普通に3重ループをまわしたらしい。
らしいというのはこれを書いたときに記憶がないから。
まぁ、すぐに解けるしいいか・・・