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

4 lines
179 B
Python
Raw Normal View History

2022-12-06 09:52:05 +00:00
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))