diff --git a/06-2-1.py b/06-2-1.py index feef9d8..bfbdcad 100644 --- a/06-2-1.py +++ b/06-2-1.py @@ -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))))