mirror of
https://github.com/plasmaofthedawn/2023adventofcode.git
synced 2024-10-18 14:26:24 -05:00
5 lines
277 B
Python
5 lines
277 B
Python
|
print(
|
||
|
sum([a[0]*10 + a[-1] for a in [[int(b) for b in c if b.isnumeric()] for c in open('resources/day1.txt').read().split("\n")[:-1]]])
|
||
|
)
|
||
|
|
||
|
# sum([a[0]*10 + a[-1] for a in [[int(b) for b in c if b.isnumeric()] for c in open('resources/day1.txt').read().split("\n")[:-1]]])
|