AoC2020/02-1-1.py

2 lines
111 B
Python
Raw Normal View History

2020-12-03 22:59:06 +00:00
print(sum(int((s:=a.split('-'))[0])<=c.count(b[0])<=int(s[1]) for a,b,c in map(str.split,open("/dev/stdin"))))