diff --git a/02-1-1.py b/02-1-1.py index dcba7fd..48af935 100644 --- a/02-1-1.py +++ b/02-1-1.py @@ -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())))