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