AoC2020/02-1-1.py
2020-12-03 22:34:39 +01:00

2 lines
151 B
Python

print(sum(1 for l in map(lambda x:x.split(),open("/dev/stdin").readlines()) if int(l[0].split('-')[0])<=l[2].count(l[1][0])<=int(l[0].split('-')[1])))