You are viewing a single comment's thread. Return to all comments →
from collections import Counter n = int(input()) lista = [input() for x in range(n)] licznik = Counter(lista) print(len(licznik)) print(" ".join(map(str, licznik.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 →
Solution