17 lines
313 B
Python
17 lines
313 B
Python
n= int(input())
|
|
|
|
|
|
total = []
|
|
for i in range(n):
|
|
available = 1
|
|
needed = 0
|
|
datas = input()
|
|
datas = datas.split(' ')
|
|
needed = int(datas[0])
|
|
for j in range(needed):
|
|
p = j+1
|
|
available = int(datas[p])+available
|
|
total.append(available - needed)
|
|
for to in total:
|
|
print(to)
|