You are viewing a single comment's thread. Return to all comments →
Python:
import re text = "".join(input() for _ in range(int(input()))) patterns = [f"{input()[:-2]}[sz]e" for _ in range(int(input()))] for pattern in patterns: print(len(re.findall(pattern, text)))
Seems like cookies are disabled on this browser, please enable them to open this website
The British and American Style of Spelling
You are viewing a single comment's thread. Return to all comments →
Python: