You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
309 B
11 lines
309 B
nbProduits = int(input())
|
|
nbPersonnes = int(input())
|
|
produits = [0] * nbProduits
|
|
|
|
for personne in range(nbPersonnes):
|
|
#print("Personne", personne +1, end=" : ")
|
|
idProduit = int(input())
|
|
produits[idProduit] = produits[idProduit] + 1
|
|
#print()
|
|
for loop in range(nbProduits):
|
|
print(produits[loop])
|