From 43d81929f821a045d685aba46836d8ea7ce58478 Mon Sep 17 00:00:00 2001 From: Valentin Ochs Date: Fri, 4 Dec 2020 13:11:20 +0100 Subject: [PATCH] Who needs all those number checks anyway --- 04-2-1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/04-2-1.py b/04-2-1.py index 80a9c31..49bc811 100644 --- a/04-2-1.py +++ b/04-2-1.py @@ -1 +1 @@ -print(sum(map(lambda x:(lambda x:60,'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:60,'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"))))