scientific_comp_projects/CODE/[python]kattis/trivial/tarifa.py
2021-10-29 15:16:40 +02:00

11 lines
167 B
Python

bytes = int(input())
months = int(input())
rest = 0
for i in range(months):
used = int(input())
rest = bytes-used + rest
total = bytes+rest
print(total)