You are viewing a single comment's thread. Return to all comments →
from collections import Counter n = int(input()) ip =[] for i in range(n): ip.append(input()) cnt = Counter(ip) for i in range(len(cnt)): i += 1 print(i) for value in cnt.values(): print(value, end=' ')
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 →