Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = int(input())
- matrix = []
- for i in range(a):
- matrix.append(0)
- #print (matrix)
- while(1):
- b = int(input( ))
- if(b == -1):
- break
- else:
- c = int(b%a)
- #print(c)
- matrix[c] = matrix[c] +1
- #print(matrix)
- for i in range(a):
- print(matrix[i], end =' ')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement