From 768d536af0793ebcfaba8622be174457f1e0834b Mon Sep 17 00:00:00 2001 From: Valentin Ochs Date: Sat, 5 Dec 2020 09:28:55 +0100 Subject: [PATCH] Reduce 4-2-2 a bit --- 04-2-2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/04-2-2.py b/04-2-2.py index 8051e3c..0ee88b1 100644 --- a/04-2-2.py +++ b/04-2-2.py @@ -1,3 +1,3 @@ import re -m=lambda x:None!=re.match(r'(by.:(1...|200[0-2])|iyr:20(1.|20)|eyr:20(2.|30)|hgt:..(in|.cm)|hc.:#.{6}|ec.:..[buynlh]|pi.:.{9})$',x) +m=lambda x:None!=re.match(r'(by.:(1...|200[0-2])|iyr:20(1.|20)|eyr:20(2.|30)|hgt:...(n|cm)|hc.:#.{6}|ec.:..[buynlh]|pi.:.{9})$',x) print(sum(map(lambda x:(lambda x:6