15 lines
261 B
Python
Executable File
15 lines
261 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
from collections import deque
|
|
|
|
with open('input') as f:
|
|
offset = 0
|
|
buf = deque([], 14)
|
|
|
|
while True:
|
|
buf.append(f.read(1))
|
|
offset += 1
|
|
if len(set(buf)) == 14:
|
|
print(offset)
|
|
break
|