aoc2020/06/1.py

4 lines
125 B
Python
Raw Normal View History

2020-12-06 11:51:37 +00:00
groups = open("input", "r").read().split("\n\n")
counts = [len(set(g.replace("\n", ""))) for g in groups]
print(sum(counts))