Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n, m = input().split()
- words = {}
- point = [0]*int(n)
- for i in range(int(m)):
- t, w = input().split()
- words[w] = int(t)
- for t in words.values():
- point[t-1] += 1
- print(*point)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement