Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 98cc022581
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (10 sloc) 0.254 kB
import sys
product = 0
for a in range(1, 998):
for b in range(a, 998):
c = 1000 - a - b
if (a*a + b*b) == c*c:
print "%d %d %d"%(a, b, c)
product = a * b * c
print product
sys.exit(0)
Jump to Line
Something went wrong with that request. Please try again.