Finish day 6 part 1
This commit is contained in:
parent
fdc1e7ef02
commit
25d13b481c
2 changed files with 2175 additions and 0 deletions
10
2020/day 6/P1/custom_customs.py
Normal file
10
2020/day 6/P1/custom_customs.py
Normal 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
2165
2020/day 6/P1/input.txt
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue