aoc
/
2022
1
0
Fork 0
2022/day06.py

4 lines
179 B
Python

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