You are viewing a single comment's thread. Return to all comments →
s = " ".join(input() for _ in range(int(input()))) for _ in range(int(input())): i = input() print(s.count(i) + s.count(i[:-2]+"se"))
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 →