10 lines
324 B
Python
10 lines
324 B
Python
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]) |