Day 06
This commit is contained in:
7
day06/part1.py
Normal file
7
day06/part1.py
Normal 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())
|
||||
Reference in New Issue
Block a user