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