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.

10 lines
324 B

nbOperations = int(input())
qtRestante = [0] * (nbOperations * 2 + 1)
for loop in range(nbOperations):
nProduit = int(input())
qtProduit = int(input())
qtRestante[nProduit] = qtRestante[nProduit] + qtProduit
#print("Résultat :")
for idProduit in range(1, nbOperations * 2 + 1):
print(qtRestante[idProduit])