mirror of
https://github.com/peter-tanner/advent-of-code-2020.git
synced 2024-11-30 10:50:17 +08:00
11 lines
288 B
Python
11 lines
288 B
Python
lines = open("input").read().splitlines()
|
|
|
|
count = 0
|
|
for line in lines:
|
|
line = line.replace('-',' ').replace(':','').split(' ')
|
|
# print(line)
|
|
# print(line[3].count(line[2]))
|
|
if int(line[0]) <= line[3].count(line[2]) <= int(line[1]):
|
|
count = count + 1
|
|
|
|
print(count) |