Day 01 (minified)

This commit is contained in:
Sebastian Seedorf
2023-12-09 23:37:58 +01:00
parent aaecd0a396
commit 14c3375905
3 changed files with 5 additions and 5 deletions

2
day01/part1.min.py Normal file
View File

@@ -0,0 +1,2 @@
#!/usr/bin/env python3
import re;print(sum(int(re.search("\d",l)[0]+re.search("\d",l[::-1])[0])for l in open("input.txt")))