diff --git a/04-2-1.py b/04-2-1.py index 1ea521e..37e8e7a 100644 --- a/04-2-1.py +++ b/04-2-1.py @@ -1 +1 @@ -print(sum(map(lambda x:(lambda x:6int(x[:-2])and'n'in x),'hc':lambda x:7==len(x)and'#'in x,'ec':lambda x:x[2]in'buynlh','pi':lambda x:len(x)==9,'ci':lambda x:0}[y[:2]](y[4:]),x)))(x.split()),open(0).read().split("\n\n")))) +print(sum(map(lambda x:(lambda x:6int(x[:-2])and'n'in x,'hc':lambda x:7==len(x)and'#'in x,'ec':lambda x:x[2]in'buynlh','pi':lambda x:len(x)==9,'ci':lambda x:0}[y[:2]](y[4:]),x)))(x.split()),open(0).read().split("\n\n"))))