Who needs all those number checks anyway
This commit is contained in:
parent
6954ed69bb
commit
43d81929f8
|
@ -1 +1 @@
|
||||||
print(sum(map(lambda x:(lambda x:6<sum(map(lambda y:5<len(y)and{'by':lambda x:1919<int(x)<2003,'iy':lambda x:2009<int(x)<2021,'ey':lambda x:2019<int(x)<2031,'hg':lambda x:('m'in x and 149<int(x[:-2])<194)or('n'in x and 58<int(x[:-2])<77),'hc':lambda x:7==len(x)and'#'in x and int(x[1:],16)>0,'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:6<sum(map(lambda y:5<len(y)and{'by':lambda x:int(x)<2003,'iy':lambda x:2009<int(x)<2021,'ey':lambda x:2019<int(x)<2031,'hg':lambda x:('m'in x and 99<int(x[:-2]))or('n'in x and int(x[:-2])<77),'hc':lambda x:7==len(x)and'#'in x and int(x[1:],16)>0,'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"))))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user