You are viewing a single comment's thread. Return to all comments →
from collections import Counter n = int(input()) data = [] for i in range(n): data.append(input()) c = Counter(data) print(len(c)) for count in c.values(): print(count, end=" ")
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 →