Initial solutions day 6

This commit is contained in:
Lynn Ochs 2020-12-06 12:22:10 +01:00
parent 1a5bcc95cc
commit b1159a69a0
2 changed files with 2 additions and 0 deletions

1
06-1-1.py Normal file
View File

@ -0,0 +1 @@
print(sum(map(lambda x:len(set(x)-set('\n')),open(0).read().split('\n'*2))))

1
06-2-1.py Normal file
View File

@ -0,0 +1 @@
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))))