You are viewing a single comment's thread. Return to all comments →
N=int(input()) s={} for _ in range(N): word = input() if word in s.keys(): s[i] += 1 else: s[i] = 1 print(len(s.keys())) print(*[i for i in s.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 →