aoc2022/d06/part2c.py

7 lines
110 B
Python
Raw Permalink Normal View History

2022-12-06 15:27:05 +00:00
import sys
s = sys.stdin.read()
for i in range(14, len(s)):
if len(set(s[i-14:i])) == 14:
print(i)
break