Day 01 (minified)
This commit is contained in:
@@ -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)})")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user