Reduce 6-2

master
Valentin Ochs 2020-12-06 13:15:58 +01:00
parent b1159a69a0
commit 1b47a4e379
1 changed files with 1 additions and 1 deletions

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))))