Fix ruff (#11527)
* updating DIRECTORY.md * Fix ruff * Fix * Fix * Fix * Revert "Fix" This reverts commit 5bc3bf342208dd707da02dea7173c059317b6bc6. * find_max.py: noqa: PLR1730 --------- Co-authored-by: MaximSmolskiy <MaximSmolskiy@users.noreply.github.com> Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
@@ -39,8 +39,7 @@ def solution(n: int = 1000) -> int:
|
||||
c = n - a - b
|
||||
if c * c == (a * a + b * b):
|
||||
candidate = a * b * c
|
||||
if candidate >= product:
|
||||
product = candidate
|
||||
product = max(product, candidate)
|
||||
return product
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user