AoC2020/02-1-1.py

2 lines
128 B
Python
Raw Normal View History

2020-12-03 22:40:29 +00:00
print(sum(int((s:=l[0].split('-'))[0])<=l[2].count(l[1][0])<=int(s[1]) for l in map(str.split,open("/dev/stdin").readlines())))