Shorter :D
This commit is contained in:
parent
def8e18ff7
commit
82f17f04ee
|
@ -1 +1 @@
|
|||
print(sum(1 for l in map(lambda x:x.split(),open("/dev/stdin").readlines()) if int(l[0].split('-')[0])<=l[2].count(l[1][0])<=int(l[0].split('-')[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])))
|
||||
|
|
Loading…
Reference in New Issue
Block a user