2020 Day 06
This commit is contained in:
parent
e984119fb3
commit
4070fc0558
|
@ -0,0 +1,4 @@
|
||||||
|
with open('input06', 'r') as file:
|
||||||
|
groups = [[set(s) for s in g.split('\n')] for g in file.read().strip().split('\n\n')]
|
||||||
|
print(f'Part 1: {sum(len(set.union(*g)) for g in groups)}')
|
||||||
|
print(f'Part 2: {sum(len(set.intersection(*g)) for g in groups)}')
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue