diff --git a/06-1-1.py b/06-1-1.py new file mode 100644 index 0000000..0aaeb9b --- /dev/null +++ b/06-1-1.py @@ -0,0 +1 @@ +print(sum(map(lambda x:len(set(x)-set('\n')),open(0).read().split('\n'*2)))) diff --git a/06-2-1.py b/06-2-1.py new file mode 100644 index 0000000..feef9d8 --- /dev/null +++ b/06-2-1.py @@ -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))))