Samuel Vermeulen 1 month ago
parent
commit
c7aab76c07
  1. 12
      charettes.py

12
charettes.py

@ -0,0 +1,12 @@
nbCharettes = int(input())
poidsCharette = [0] * nbCharettes
poidsTotalCharettes = 0
for loop in range(nbCharettes):
poidsCharette[loop] = float(input())
poidsTotalCharettes = poidsTotalCharettes + poidsCharette[loop]
poidsARepartir = poidsTotalCharettes / nbCharettes
for loop in range(nbCharettes):
print(poidsARepartir - poidsCharette[loop])
Loading…
Cancel
Save