Use compiled black as the pre-commit formatter (#11247)

* Use compiled black as the pre-commit formatter

* ruff-format

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Keep GitHub Actions up to date with Dependabot

---------

Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
AtomicVar
2024-01-16 16:39:54 +08:00
committed by GitHub
parent dd47651bfc
commit 4b6f688344
8 changed files with 28 additions and 20 deletions

View File

@ -30,9 +30,7 @@ def solution(a: int = 100, b: int = 100) -> int:
# RETURN the MAXIMUM from the list of SUMs of the list of INT converted from STR of
# BASE raised to the POWER
return max(
sum(int(x) for x in str(base**power))
for base in range(a)
for power in range(b)
sum(int(x) for x in str(base**power)) for base in range(a) for power in range(b)
)