You are viewing a single comment's thread. Return to all comments →
from collections import OrderedDict d = OrderedDict() for i in range(int(input())): s = input() d[s] = d.get(s,0)+1 print(len(list(d.keys()))) print(*list(d.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 →