You are viewing a single comment's thread. Return to all comments →
Python brofist! Here's my python.
from collections import defaultdict words = defaultdict(lambda: 0) for _ in range(int(input().strip())): words[input().strip()] += 1 for _ in range(int(input().strip())): print(words[input().strip()])
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 →
Python brofist! Here's my python.