aoc2022/d06/part2c.py

7 lines
110 B
Python

import sys
s = sys.stdin.read()
for i in range(14, len(s)):
if len(set(s[i-14:i])) == 14:
print(i)
break