EDIT APÓS SUGESTÕES:
def countSignals(frequencies, ranges):
new_ranges = []
for i in range(len(ranges)):
i = range(ranges[i][0], ranges[i][1] + 1)
new_ranges.append(i)
return sum(1 if all(f in r for r in new_ranges) else 0 for f in frequencies)
if __name__ == '__main__':
frequencies_count = int(input().strip())
frequencies = []
for _ in range(frequencies_count):
frequencies_item = int(input().strip())
frequencies.append(frequencies_item)
filterRanges_rows = int(input().strip())
filterRanges_columns = int(input().strip())
filterRanges = []
for _ in range(filterRanges_rows):
filterRanges.append(list(map(int, input().rstrip().split())))
result = countSignals(frequencies, filterRanges)
print(result)
Passei em 12/15 testes. Preciso otimizar mais... Não consigo alterar nada definido no método main, apenas consigo alterar a função countSignals.