1
Fork 0
mirror of https://github.com/RGBCube/AdventOfCode synced 2025-07-26 03:27:44 +00:00

Add python part 1

This commit is contained in:
RGBCube 2023-12-02 00:10:56 +03:00
parent adb0b9bd29
commit 903560cc9c
No known key found for this signature in database
3 changed files with 3 additions and 1 deletions

1
2023/1-1.py Normal file
View file

@ -0,0 +1 @@
print(sum(int(__import__("functools").reduce(lambda x,y: x+y,(lambda a:[a[0],a[-1]])(list(filter(lambda c:c.isdigit(),l)))))for l in __import__("pathlib").Path("1-1.in").read_text().splitlines()))