2 lines
100 B
Python
2 lines
100 B
Python
print(sum(int((s:=a.split('-'))[0])<=c.count(b[0])<=int(s[1]) for a,b,c in map(str.split,open(0))))
|