Finish day 6 part 1

This commit is contained in:
Ethanell 2020-12-06 12:00:45 +01:00
parent fdc1e7ef02
commit 25d13b481c
2 changed files with 2175 additions and 0 deletions

View file

@ -0,0 +1,10 @@
qs = []
with open("input.txt") as f:
for q in f.read().split("\n\n"):
s = set()
for a in q.split("\n"):
s.update(list(a))
qs.append(s)
print(sum(map(lambda x: len(x), qs)))

2165
2020/day 6/P1/input.txt Normal file

File diff suppressed because it is too large Load diff