You are viewing a single comment's thread. Return to all comments →
import re text = " ".join([input() for _ in range(int(input()))]) for _ in range(int(input())) : print(len(re.findall(r'(?<=\w){}(?=\w)'.format(input()),text)),sep = "\n")
Seems like cookies are disabled on this browser, please enable them to open this website
Find A Sub-Word
You are viewing a single comment's thread. Return to all comments →