2 lines
179 B
Python
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"))))
|