aoc
/
2022
1
0
Fork 0
This commit is contained in:
Sijmen 2022-12-06 10:52:05 +01:00
parent 354dac8de7
commit e1a4d88b80
Signed by: vijfhoek
GPG Key ID: DAF7821E067D9C48
1 changed files with 3 additions and 0 deletions

3
day06.py Normal file
View File

@ -0,0 +1,3 @@
inp = input().strip()
print(next(i + 4 for i in range(len(inp)) if len(set(inp[i : i + 4])) == 4))
print(next(i + 14 for i in range(len(inp)) if len(set(inp[i : i + 14])) == 14))