AoC2020/06-2-1.py

2 lines
110 B
Python
Raw Normal View History

2020-12-06 11:22:10 +00:00
print(sum(map(lambda x:sum((f:=x.count)(c)==(t:=f('\n')+1)for c in x)//t,open(0).read()[:-1].split('\n'*2))))