Skip to content

Commit 1baeb75

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1689169 commit 1baeb75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

project_euler/problem_009/sol4.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ def solution(n: int = 1000) -> int:
6464
for b in range(n // 2 - 1, n // 3, -2):
6565
for a in range(b - 1, 0, -2):
6666
c = n - b - a
67-
if b > c: # constraint a < b < c should be satisfied
67+
if b > c: # constraint a < b < c should be satisfied
6868
continue
69-
if a**2 + b**2 == c**2: # is it a pythagorean triplet
69+
if a**2 + b**2 == c**2: # is it a pythagorean triplet
7070
return a * b * c
7171

7272

0 commit comments

Comments
 (0)