Day 06 (minified)

This commit is contained in:
Sebastian Seedorf
2022-12-08 11:33:21 +01:00
parent c476f87437
commit b61471f365
3 changed files with 3 additions and 3 deletions

View File

@@ -1,3 +1,3 @@
#!/usr/bin/env python3
print(next(i+14for l in open("input.txt")for i in range(len(l))if len(set(l[i:i+14]))==14))
print(next(i+14for l in open("input.txt")for i in range(len(l))if len({*l[i:i+14]})==14))