diff options
-rwxr-xr-x | 2021/08/puzzle-2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/2021/08/puzzle-2.py b/2021/08/puzzle-2.py index c90e07c..85854f9 100755 --- a/2021/08/puzzle-2.py +++ b/2021/08/puzzle-2.py @@ -44,7 +44,7 @@ def solve(nums: list[str]) -> int: def main() -> None: with open("input", "r", encoding="utf-8") as f: - print(sum(solve(line) for line in map(lambda l: l.strip().split(), f.readlines()))) + print(sum(map(solve, map(lambda l: l.strip().split(), f.readlines())))) if __name__ == "__main__": |