AoC2020/04-1-1.py

2 lines
179 B
Python

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("/dev/stdin").read().split("\n\n"))))