Cosmetic change
This commit is contained in:
@@ -24,9 +24,9 @@ def compute():
|
||||
Find the product abc.
|
||||
"""
|
||||
|
||||
upper_limit = 1000
|
||||
for a in range(1, upper_limit + 1):
|
||||
for b in range(a + 1, upper_limit + 1):
|
||||
upper_limit = 1000 + 1
|
||||
for a in range(1, upper_limit):
|
||||
for b in range(a + 1, upper_limit):
|
||||
c = upper_limit - a - b
|
||||
if a * a + b * b == c * c:
|
||||
# It is now implied that b < c, because we have a > 0
|
||||
|
||||
Reference in New Issue
Block a user