From 4eb36eacd01990cefd19311f50239f37d6199517 Mon Sep 17 00:00:00 2001 From: Valentin Ochs Date: Fri, 4 Dec 2020 17:28:58 +0100 Subject: [PATCH] Shorten 4-1 --- 04-1-1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/04-1-1.py b/04-1-1.py index a3e09a0..38a5e89 100644 --- a/04-1-1.py +++ b/04-1-1.py @@ -1 +1 @@ -print(sum(map(lambda x:7==len(set(['byr','iyr','eyr','hgt','hcl','ecl','pid'])&set(map(lambda y:y[:3],x.replace('\n',' ').split(' ')))),open(0).read().split("\n\n")))) +print(sum(map(lambda x:6