You are viewing a single comment's thread. Return to all comments →
Simple code in Python
import re s = "" for _ in range(int(input())) : s = s+ " " + input() s = s.strip() for _ in range(int(input())) : print(len(re.findall(r'\b{}\b'.format(input()),s)),sep = "\n")
Seems like cookies are disabled on this browser, please enable them to open this website
Find a Word
You are viewing a single comment's thread. Return to all comments →
Simple code in Python