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