Shorter still

master
Valentin Ochs 2020-12-03 23:40:29 +01:00
parent 82f17f04ee
commit 51c8d0d12a
1 changed files with 1 additions and 1 deletions

View File

@ -1 +1 @@
print(sum(1 for l in map(str.split,open("/dev/stdin").readlines()) if int((s:=l[0].split('-'))[0])<=l[2].count(l[1][0])<=int(s[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").readlines())))