You are viewing a single comment's thread. Return to all comments →
import re txt = "" for i in range(int(input())): txt +=" "+input() for j in range(int(input())): word = input()[:-2] print(len(re.findall(fr'{word}[zs]e',txt)))
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 →