This commit is contained in:
Sebastian Seedorf
2022-12-06 12:47:57 +01:00
parent 1b18edd0ba
commit c476f87437
5 changed files with 22 additions and 0 deletions

7
day06/part1.py Normal file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env python3
import re
lines = (x.strip() for x in open("input.txt"))
for line in lines:
print(re.search(r"(\w)(?!\1)(\w)(?!\1|\2)(\w)(?!\1|\2|\3)(\w)", line).end())