mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-09-29 17:08:49 +08:00
Make some ruff fixes (#8154)
* Make some ruff fixes * Undo manual fix * Undo manual fix * Updates from ruff=0.0.251
This commit is contained in:
@@ -32,9 +32,8 @@ def solution() -> int:
|
||||
for a in range(300):
|
||||
for b in range(a + 1, 400):
|
||||
for c in range(b + 1, 500):
|
||||
if (a + b + c) == 1000:
|
||||
if (a**2) + (b**2) == (c**2):
|
||||
return a * b * c
|
||||
if (a + b + c) == 1000 and (a**2) + (b**2) == (c**2):
|
||||
return a * b * c
|
||||
|
||||
return -1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user