This commit is contained in:
Lynn Ochs 2020-12-03 23:59:06 +01:00
parent 8a4688ecab
commit f72ab12d9e

View File

@ -1 +1 @@
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"))))
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"))))