You are viewing a single comment's thread. Return to all comments →
from collections import Counter c = Counter([input() for x in range(int(input()))]) [print(c.get(input(), 0)) for _ in range(int(input()))]
Seems like cookies are disabled on this browser, please enable them to open this website
Sparse Arrays
You are viewing a single comment's thread. Return to all comments →