Files
AoC/2022/Day-06/day01-2.py
2022-12-06 09:19:18 +00:00

15 lines
240 B
Python

#!/usr/bin/python3
input = open('input.txt', 'r').readline()
i = 0
different = []
while(len(different) < 13):
if(input[i] not in different):
different.append(input[i])
else:
different = []
i += 1
print(i - 1)