AoC2020/04-1-1.py

2 lines
179 B
Python
Raw Normal View History

2020-12-04 08:11:08 +00:00
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"))))