Reduce 6-2

This commit is contained in:
Lynn Ochs 2020-12-06 13:15:58 +01:00
parent b1159a69a0
commit 1b47a4e379

View File

@ -1 +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)))) print(sum(map(lambda x:sum((f:=x.count)(c)>f('\n')for c in set(x)),open(0).read()[:-1].split('\n'*2))))