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

View File

@@ -5,7 +5,6 @@ STRINGS = ["one", "two", "three", "four", "five", "six", "seven", "eight", "nine
lines = (x.strip() for x in open("input.txt"))
total = 0
digitRegex = f"(\\d|{'|'.join(STRINGS)})"
regexFirst = re.compile(f"^.*?(\\d|{'|'.join(STRINGS)})")
regexLast = re.compile(f"^.*(\\d|{'|'.join(STRINGS)})")