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

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))