You are viewing a single comment's thread. Return to all comments →
n=int(input()) a=[] for tt in range(n): t=input() a.append(t) from collections import Counter das=(Counter(a)) print(len(Counter(a))) print(*das.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 →