You are viewing a single comment's thread. Return to all comments →
Python3
import re tx = '' erg = [] for n in range(int(input())): tx += input() for n in range(int(input())): e = input() print(len(re.findall(e[:len(e)-2] + '[sz]e', tx)))
The British and American Style of Spelling
You are viewing a single comment's thread. Return to all comments →
Python3