SHARE
TWEET

Untitled

a guest Jun 18th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n, m = input().split()
  2. words = {}
  3. point = [0]*int(n)
  4. for i in range(int(m)):
  5.     t, w = input().split()
  6.     words[w] = int(t)
  7. for t in words.values():
  8.     point[t-1] += 1
  9. print(*point)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top