You are viewing a single comment's thread. Return to all comments →
from collections import Counter instances = int(input()) words = [] for i in range(instances): words.append(input()) ocurrencies = Counter(words) print(len(ocurrencies)) print(" ".join(map(str, ocurrencies.values())))
Seems like cookies are disabled on this browser, please enable them to open this website
Word Order
You are viewing a single comment's thread. Return to all comments →